Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catching error if GPG key does not exist #99

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ci/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function import_gpg_keys() {
gpg -v --batch --keyserver hkps://keys.openpgp.org --recv-keys "${key}" ||
gpg -v --batch --keyserver hkp://keyserver.ubuntu.com --recv-keys "${key}" ||
gpg -v --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "${key}" ||
gpg -v --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "${key}"
gpg -v --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "${key}" ||
echo -e "${key} can not be found on GPG key servers. Please upload it to at least one of the following GPG key servers:\nhttps://keys.openpgp.org/\nhttps://keyserver.ubuntu.com/\nhttps://pgp.mit.edu/"
done
}

Expand Down