Skip to content

Commit

Permalink
no else after exit
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
omoerbeek and jsoref committed Nov 15, 2021
1 parent d66aafa commit 758f16e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/secpoll-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 758f16e

Please sign in to comment.