From c6d5275d9dabb1e751b03838d4bc015d379479ce Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Wed, 26 Jul 2017 15:32:34 -0400 Subject: [PATCH] use --no-tty option for gpg Change-Id: I4af02be6d80d3390d2d77600621d0d65eba9d9ee Signed-off-by: Mike Marchetti --- tools/gen-repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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/" -- 2.25.1