add spacing to stderr output

This commit is contained in:
nervuri 2021-06-24 13:13:47 +00:00
parent 0046798424
commit d536aa9003
Signed by: nervuri
GPG Key ID: C4769EEA7BA61672
1 changed files with 2 additions and 0 deletions

View File

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