diff --git a/install-latest.sh b/install-latest.sh index e397d916..efbb702c 100755 --- a/install-latest.sh +++ b/install-latest.sh @@ -147,11 +147,8 @@ else TOOLING_KEY_NAME="Exoscale Tooling " 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