Corrected error redirection

This commit is contained in:
Michael Boelen 2016-10-15 16:22:18 +02:00
parent 8777a5e616
commit f1c3c23cae

View File

@ -658,7 +658,7 @@
COUNT=0 COUNT=0
PACKAGE_AUDIT_TOOL_FOUND=1 PACKAGE_AUDIT_TOOL_FOUND=1
PACKAGE_AUDIT_TOOL="pkg audit" PACKAGE_AUDIT_TOOL="pkg audit"
FIND=$(/usr/sbin/pkg audit 2>&1 /dev/null) FIND=$(/usr/sbin/pkg audit > /dev/null 2>&1)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
LogText "Result: pkg audit results are clean" LogText "Result: pkg audit results are clean"
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN