[tor-commits] [tor/master] Fix SC2181
nickm at torproject.org
nickm at torproject.org
Tue Feb 19 16:32:39 UTC 2019
commit 7e415ec05a1bb1cf5cda7088f2c27e9202b3b3f1
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date: Wed Feb 6 10:51:54 2019 +0200
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 932a78061..75ff479a5 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"
More information about the tor-commits
mailing list