use --no-tty option for gpg 45/2045/1
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 26 Jul 2017 19:32:34 +0000 (15:32 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Wed, 26 Jul 2017 19:32:34 +0000 (15:32 -0400)
Change-Id: I4af02be6d80d3390d2d77600621d0d65eba9d9ee
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
tools/gen-repo.sh

index 5227f88..480ca06 100755 (executable)
@@ -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/"