From: Andrew Engelbrecht Date: Mon, 1 Aug 2022 20:35:44 +0000 (-0400) Subject: fixed gpg key checking function X-Git-Url: https://vcs.fsf.org/?p=fsf-keyring.git;a=commitdiff_plain;h=daa8fa96e9c069137997d545fc91f5118c902d06 fixed gpg key checking function --- diff --git a/fsf-keyring.sh b/fsf-keyring.sh index a21c4ea..9a8910e 100755 --- a/fsf-keyring.sh +++ b/fsf-keyring.sh @@ -37,7 +37,10 @@ refresh-gpg-key() { } check-sig-dos() { - (( "$(stat -c %s "$1")" > "${dos_attack_bytes}" )) && echo -e "\n\nerror: keyring is very large. did we get a signature DoS attack?\n\n" && exit 1 + if (( "$(stat -c %s "$1")" > "$dos_attack_bytes" )) ; then + echo -e "\n\nerror: keyring is very large. did we get a signature DoS attack?\n\n" + exit 1 + fi } refresh=true