fixed gpg key checking function
authorAndrew Engelbrecht <andrew@fsf.org>
Mon, 1 Aug 2022 20:35:44 +0000 (16:35 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Mon, 1 Aug 2022 20:35:44 +0000 (16:35 -0400)
fsf-keyring.sh

index a21c4eab8d959aae3b646a528f673bdffde89538..9a8910e0bb836a8aaa71073ba2d879a8a8608395 100755 (executable)
@@ -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