From f1c3c23cae183d11ca825ac5cf5b2f3c6a7aded6 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 15 Oct 2016 16:22:18 +0200 Subject: [PATCH] Corrected error redirection --- include/tests_ports_packages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 5cc9ed06..0f5a3e0b 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -658,7 +658,7 @@ COUNT=0 PACKAGE_AUDIT_TOOL_FOUND=1 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 LogText "Result: pkg audit results are clean" Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN