2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-12-24 11:43:42 +01:00

hide errors when json format is used

This commit is contained in:
Julien Vehent 2014-10-10 17:27:58 -04:00
parent 278dab4800
commit b80b5cdd35

View File

@ -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},,<<<"${@}")