Skip to content

Commit

Permalink
fix: mention keyserver if gpg cannot automatically import keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemaker1 committed Jun 28, 2021
1 parent 3550829 commit 37090a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/yeet
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ function print_package_summary {
if [[ "${#pgpkeys[@]}" != "0" ]]; then
printb "==> Importing PGP keys $(join_by ', ' $pgpkeys)"
for key in "${pgpkeys[@]}"; do
gpg --recv-keys "$key"
# Manually set the keyserver if it does not work automatically the first time
gpg --recv-keys "$key" || gpg --keyserver keyserver.ubuntu.com --recv-keys "$key"
done
printg "==> Imported PGP keys successfully!"
fi
Expand Down

0 comments on commit 37090a7

Please sign in to comment.