add spacing to stderr output
This commit is contained in:
parent
0046798424
commit
d536aa9003
|
@ -84,6 +84,7 @@ while read -r host; do
|
|||
cert=$(fetch_cert "$host_and_port" 'timeout 10')
|
||||
|
||||
if [ -z "$cert" ]; then
|
||||
>&2 echo # empty line
|
||||
>&2 echo "$host_and_port - connection failed"
|
||||
fi
|
||||
|
||||
|
@ -100,6 +101,7 @@ while read -r host; do
|
|||
cert_via_tor=$(fetch_cert "$host_and_port" 'timeout 25' 'torsocks')
|
||||
|
||||
if [ -z "$cert_via_tor" ]; then
|
||||
[ -n "$cert" ] && >&2 echo # output empty line to stderr if cert was downloaded without Tor
|
||||
>&2 echo "$host_and_port - Tor connection failed"
|
||||
elif [ -n "$cert" ] && [ "$cert" != "$cert_via_tor" ]; then
|
||||
>&2 echo "$host_and_port - Tor VERIFICATION FAILED (certs don't match)!!!"
|
||||
|
|
Loading…
Reference in New Issue