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
1 changed files with 3 additions and 1 deletions

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