From 4ddc27cbf2d821ecc60c40a9dd0ab13170c4db30 Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 22 Mar 2023 00:53:19 -0400 Subject: [PATCH] fixed erroneous gpg dep --- protonkey | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/protonkey b/protonkey index ac13b06..401253b 100755 --- a/protonkey +++ b/protonkey @@ -24,15 +24,10 @@ if test -z "$1"; then exit 64 # syexits(3) EX_USAGE fi -for command in \ - curl \ - gpg -do - if ! command -v "$command" > /dev/null; then - printf "%s: Missing dependency: %s(1)\n" "$0" "$command" 1>&2 - exit 69 # sysexits(3) EX_UNAVAILABLE - fi -done +if ! command -v curl > /dev/null; then + printf "%s: Missing dependency: curl(1)\n" "$0" 1>&2 + exit 69 # sysexits(3) EX_UNAVAILABLE +fi while test -n "$1"; do URL="https://api.protonmail.ch/pks/lookup?op=get&search=$1"