From 7e415ec05a1bb1cf5cda7088f2c27e9202b3b3f1 Mon Sep 17 00:00:00 2001 From: rl1987 Date: Wed, 6 Feb 2019 10:51:54 +0200 Subject: [PATCH] Fix SC2181 --- contrib/dirauth-tools/nagios-check-tor-authority-cert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/dirauth-tools/nagios-check-tor-authority-cert b/contrib/dirauth-tools/nagios-check-tor-authority-cert index 932a780618..75ff479a53 100755 --- a/contrib/dirauth-tools/nagios-check-tor-authority-cert +++ b/contrib/dirauth-tools/nagios-check-tor-authority-cert @@ -53,8 +53,8 @@ TMPFILE=$(mktemp) trap 'rm -f "$TMPFILE"' 0 for dirserver in $DIRSERVERS; do - wget -q -O "$TMPFILE" "http://$dirserver/tor/keys/fp/$identity" - if [ "$?" = 0 ]; then + if wget -q -O "$TMPFILE" "http://$dirserver/tor/keys/fp/$identity" + then break else cat /dev/null > "$TMPFILE"