Skip to content

Commit

Permalink
check if key is available
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Sep 14, 2023
1 parent fcc79e1 commit 8226677
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions install-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,8 @@ else
TOOLING_KEY_NAME="Exoscale Tooling <[email protected]>"
TOOLING_KEY_FINGERPRINT="7100E8BFD6199CE0374CB7F003686F8CDE378D41"

GPG_KEY_LIST=$(gpg --list-keys 2>/dev/null)
GPG_TOOLING_KEY_MATCH=$(echo $GPG_KEY_LIST | grep $TOOLING_KEY_FINGERPRINT)

# Check if the tooling key is available
if [ -n "$GPG_TOOLING_KEY_MATCH" ]; then
if gpg --list-keys | grep -q $TOOLING_KEY_FINGERPRINT; then
# verity sig
echo "the key is available"
exit 1
Expand Down

0 comments on commit 8226677

Please sign in to comment.