Browse Source

wait a little bit if receiving fails

master
Alf Gaida 1 year ago
parent
commit
a0519c363d
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      pyfll/sbin/gpg-receive-key

+ 2
- 0
pyfll/sbin/gpg-receive-key View File

@@ -16,8 +16,10 @@ until [ "$CNT" -gt "10" ] || [ "$RES" -eq "0" ];  do
16 16
     gpg --keyserver hkps://hkps.pool.sks-keyservers.net --trust-model always --recv-keys "$GPGKEY"
17 17
     RES=$(echo $?)
18 18
     if [ ! "$RES" -eq "0" ]; then
19
+         sleep 3
19 20
          gpg --keyserver hkps://pgp.mit.edu --recv-keys --trust-model always --recv-keys "$GPGKEY"
20 21
          RES=$(echo $?)
21 22
     fi
23
+    [ ! "$RES" -eq "0" ] && sleep 3
22 24
 done
23 25
 

Loading…
Cancel
Save