From b80b5cdd35e3370493e5557b909f89fafd6a2935 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Fri, 10 Oct 2014 17:27:58 -0400 Subject: [PATCH] hide errors when json format is used --- cipherscan | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cipherscan b/cipherscan index e487bd4..62c20f7 100755 --- a/cipherscan +++ b/cipherscan @@ -485,7 +485,9 @@ debug "target: $TARGET" tmp="$($OPENSSLBIN -h 2>&1 1>/dev/null)" if [ $? -gt 0 ]; then OPENSSLBIN=$(which openssl) - echo "custom openssl not executable, falling back to system one from $OPENSSLBIN" + if [ "$OUTPUTFORMAT" == "terminal" ]; then + echo "custom openssl not executable, falling back to system one from $OPENSSLBIN" + fi fi SCLIENTARGS=$(sed -e s,${TEMPTARGET},,<<<"${@}")