From: Mike Marchetti Date: Wed, 26 Jul 2017 19:32:34 +0000 (-0400) Subject: use --no-tty option for gpg X-Git-Tag: v3.0.0rc~26 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F2045%2F1;p=osm%2Fdevops.git use --no-tty option for gpg Change-Id: I4af02be6d80d3390d2d77600621d0d65eba9d9ee Signed-off-by: Mike Marchetti --- diff --git a/tools/gen-repo.sh b/tools/gen-repo.sh index 5227f880..480ca06f 100755 --- a/tools/gen-repo.sh +++ b/tools/gen-repo.sh @@ -93,7 +93,7 @@ $JFROG_CLI rt download --build "$BUILD" osm-release || FATAL "Failed to download BUILD_NUMBER=$(basename "$BUILD") -[ $PASSPHRASE_FILE ] && GPG_PASSPHRASE="--no-use-agent --passphrase \"$(cat $PASSPHRASE_FILE)\"" +[ $PASSPHRASE_FILE ] && GPG_PASSPHRASE="--no-tty --no-use-agent --passphrase \"$(cat $PASSPHRASE_FILE)\"" mkdir -p $BASE_DIR/dists @@ -119,10 +119,10 @@ apt-ftparchive release dists/$OUT_REPO > dists/$OUT_REPO/Release #gzip -9fk dists/$OUT_REPO/Release rm -f dists/$OUT_REPO/InRelease -eval gpg $GPG_PASSPHRASE --default-key $GPGKEY --clearsign -o dists/$OUT_REPO/InRelease dists/$OUT_REPO/Release +eval gpg $GPG_PASSPHRASE --no-tty --default-key $GPGKEY --clearsign -o dists/$OUT_REPO/InRelease dists/$OUT_REPO/Release rm -f dists/$OUT_REPO/Release.gpg -eval gpg $GPG_PASSPHRASE --default-key $GPGKEY -abs -o dists/$OUT_REPO/Release.gpg dists/$OUT_REPO/Release +eval gpg $GPG_PASSPHRASE --no-tty --default-key $GPGKEY -abs -o dists/$OUT_REPO/Release.gpg dists/$OUT_REPO/Release echo "performing rsync of repo $RELEASE_DIR/dist/$OUT_REPO to osm-download.etsi.org:/repos/"