From 08aaf1cab3edc8093fca52c36c1ff7d09c98381a Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 3 Jan 2023 20:18:06 -0500 Subject: [PATCH] messed up find & replace --- protonkey | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/protonkey b/protonkey index 99c7c71..9a11300 100755 --- a/protonkey +++ b/protonkey @@ -17,26 +17,26 @@ # along with this program. If not, see https://www.gnu.org/licenses/. if ! test -n "$1"; then - printf "Usage: %s [ProtonMail address]\n" "$0" 1>&2 - exit 64 # syexits(3) EX_USAGE + printf "Usage: %s [ProtonMail address]\n" "$0" 1>&2 + exit 64 # syexits(3) EX_USAGE fi for command in \ - curl \ - gpg + 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 + 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 URL="https://api.protonmail.ch/pks/lookup?op=get&search=$1" RESPONSE="$(curl -s "$URL")" if ! printf "%s\n" "$RESPONSE" | gpg --import >/dev/null 2>&1; then - printf "%s\n" "$RESPONSE" 1>&2 - exit 76 # sysexits(3) EX_PROTOCOL + printf "%s\n" "$RESPONSE" 1>&2 + exit 76 # sysexits(3) EX_PROTOCOL else - exit 0 + exit 0 fi