Skip to content

Commit f1d2a95

Browse files
committed
getuto: Refresh keys in parallel
Signed-off-by: Zen <[email protected]>
1 parent 11774d2 commit f1d2a95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

getuto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ getuto_refresh() {
7373
# Refresh all keys from the keyserver if we can.
7474
for keyserver in "${mykeyservers[@]}" ; do
7575
# TODO: keys.openpgp.org lacks a UID for our keys, need to verify email
76-
gpg ${QUIET_GPG} --batch --keyserver "${keyserver}" --refresh-keys || true
76+
gpg ${QUIET_GPG} --batch --keyserver "${keyserver}" --refresh-keys &
7777
done
7878
# We only sign (-> ultimate trust) the keys we originally import, so this is fine and
7979
# just serves as an additional refresh method.
80-
gpg ${QUIET_GPG} --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] || true
80+
gpg ${QUIET_GPG} --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] &
81+
wait
8182

8283
touch ${LASTRUNFILE}
8384
else

0 commit comments

Comments
 (0)