Update run.sh

This commit is contained in:
Manevolent 2022-12-17 01:13:19 -07:00 committed by GitHub
parent 89b423897c
commit eb6a532b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
run.sh
View File

@ -13,12 +13,14 @@ do
current_version=`cat $version_file || echo 0`
gpg --import <trusted_signers >> $log 2>&1
(echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key "$(gpg --list-packets <trusted_signers | awk '$1=="keyid:"{print$2;exit}')" trust >> $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 <trusted_signers | awk '$1=="keyid:"{print$2}'`; do
(echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key $id trust >> $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