Commit b008981a authored by AlmAck's avatar AlmAck
Browse files

improve the gpg --recv-keys and use multiple keyserver to import the key

parent 362be5e0
......@@ -4,6 +4,11 @@ source "$SCRIPT_DIR/lib/"
_do list_packages
# `gpg --recv-key` requires write access to the current user's home directory!
_do gpg --recv-key $(get_validpgpkeys)
for server in $(shuf -e \
hkp:// \ \
hkp:// \ ; do
_do gpg --keyserver "$server" --recv-keys $(get_validpgpkeys) && break || : ;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment