diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2022-04-11 21:42:19 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2022-04-11 21:42:19 -0700 |
commit | 8c8058a5808b645131a583997fd5c3a6c14b5b1a (patch) | |
tree | ec6f377406ec4a3b7b561ede9f770e5a3487aa22 | |
parent | sync-origin-mirror*sh: new helper scripts (diff) | |
download | mastermirror-scripts-8c8058a5808b645131a583997fd5c3a6c14b5b1a.tar.gz mastermirror-scripts-8c8058a5808b645131a583997fd5c3a6c14b5b1a.tar.bz2 mastermirror-scripts-8c8058a5808b645131a583997fd5c3a6c14b5b1a.zip |
sign-autobuilds: try to avoid tty error output20220412T044222Z
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | sign-autobuilds.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sign-autobuilds.sh b/sign-autobuilds.sh index 8eacfe5..32c75c4 100755 --- a/sign-autobuilds.sh +++ b/sign-autobuilds.sh @@ -12,6 +12,7 @@ RELEASES=/var/tmp/gmirror-releases/releases/ DEBUG='' VERBOSE='' +GPG='gpg --homedir /home/gmirror/.gnupg-releng/ --batch --no-tty' # Do not change DEBUGP= @@ -26,13 +27,13 @@ VERBOSEP=false signone() { f="$1" - $DEBUGP gpg --homedir /home/gmirror/.gnupg-releng/ --armor --detach-sign "${f}" + $DEBUGP ${GPG} --armor --detach-sign "${f}" } signone_clearsign() { # only for text files! f="$1" - $DEBUGP gpg --homedir /home/gmirror/.gnupg-releng/ --armor --clearsign "${f}" + $DEBUGP ${GPG} --armor --clearsign "${f}" $DEBUGP mv "${f}".asc "${f}" } |