]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
no else after exit
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 26 Oct 2021 06:05:33 +0000 (08:05 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 15 Nov 2021 13:13:21 +0000 (14:13 +0100)
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
docs/secpoll-check.sh

index cf184f043130fcf995de7461c82abebd0593bb25..0c85582ec0ebd2002ef2d301e78cc6b9f3d77606 100644 (file)
@@ -3,11 +3,10 @@ if [ $# -ne 1 ]; then
   echo usage: $0 file
   exit 1
 fi
-if egrep -v '^(@|;|$)' "$1" | egrep -v 'ubuntu|debian|raspbian|fedora' | egrep -v '(auth|recursor|dnsdist)-[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)[0-9]+)?\.security-status +60 IN TXT "[1-3].*"' 
+if egrep -v '^(@|;|$)' "$1" | egrep -v 'ubuntu|debian|raspbian|fedora' | egrep -v '(auth|recursor|dnsdist)-[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)[0-9]+)?\.security-status +60 IN TXT "[1-3].*"' 
 then
-echo OK
-exit 0
-else
 echo Not OK
 exit 1
 fi
+echo OK
+exit 0