Fix SC2181

This commit is contained in:
rl1987 2019-02-06 10:51:54 +02:00
parent 2649239c62
commit 7e415ec05a

View File

@ -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"