Skip to content

Commit 3790168

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

getuto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ 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+
einfo "Refreshing keys from: ${keyserver}"
77+
gpg ${QUIET_GPG} --batch --keyserver "${keyserver}" --refresh-keys || true &
7778
done
7879
# We only sign (-> ultimate trust) the keys we originally import, so this is fine and
7980
# just serves as an additional refresh method.
8081
gpg ${QUIET_GPG} --auto-key-locate=clear,nodefault,wkd --locate-key [email protected] [email protected] [email protected] || true
82+
wait
8183

8284
touch ${LASTRUNFILE}
8385
else

0 commit comments

Comments
 (0)