Update run.sh
This commit is contained in:
parent
89b423897c
commit
eb6a532b7f
14
run.sh
14
run.sh
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user