Archived
1
0

fixed some things

This commit is contained in:
Emma Tebibyte 2023-03-08 23:54:56 -05:00
parent 08aaf1cab3
commit 71b82de86b
Signed by: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -2,7 +2,7 @@
# Copyright (c) 2022 Emma Tebibyte
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Protonkey is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
@ -34,7 +34,7 @@ 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
if ! printf "%s\n" "$RESPONSE"; then
printf "%s\n" "$RESPONSE" 1>&2
exit 76 # sysexits(3) EX_PROTOCOL
else