From d536aa9003ecd80745f669f28497cc37bdfe6b26 Mon Sep 17 00:00:00 2001 From: nervuri Date: Thu, 24 Jun 2021 13:13:47 +0000 Subject: [PATCH] add spacing to stderr output --- get-certs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/get-certs.sh b/get-certs.sh index 81be54a..474d520 100755 --- a/get-certs.sh +++ b/get-certs.sh @@ -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)!!!"