diff --git a/run.sh b/run.sh index bad2abf..725d96b 100755 --- a/run.sh +++ b/run.sh @@ -13,12 +13,14 @@ do current_version=`cat $version_file || echo 0` gpg --import > $log 2>&1 - (echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key "$(gpg --list-packets > $log 2>&1 - if [ $? -ne 0 ]; then - echo "GPG import from trusted_signers failed. For more details, see $log" - sleep $delay - continue - fi + for id in `gpg --list-packets > $log 2>&1 + if [ $? -ne 0 ]; then + echo "Import GPG key with id $id from trusted_signers failed. For more details, see $log" + sleep $delay + continue + fi + done git fetch $GIT_URL >> $log 2>&1 if [ $? -ne 0 ]; then