Browse Source

Fix SC2181

rl1987 5 years ago
parent
commit
7e415ec05a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contrib/dirauth-tools/nagios-check-tor-authority-cert

+ 2 - 2
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"