From 71a0c79053119fedfcb68d47c7b4483b16a8ec1c Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 8 Apr 2019 07:53:04 +0200 Subject: [PATCH] Corrected stdout/stderr redirection for FreeBSD pkg tool --- include/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions b/include/functions index e3a09c0c..26d8c378 100644 --- a/include/functions +++ b/include/functions @@ -1700,7 +1700,7 @@ ################################################################################ # Name : PackageIsInstalled() - # Description : Add a separator to log file between sections, tests etc + # Description : Determines if a package is installed # Returns : exit code # Notes : this function is not used yet, but created in advance to allow # the addition of support for all operating systems @@ -1725,7 +1725,7 @@ output=$(${EQUERYBINARY} --quiet ${package} > /dev/null 2>&1) exit_code=$? # 0=package installed, 3=package not installed elif [ ! -z "${PKG_BINARY}" ]; then - output=$(${PKG_BINARY} -N info ${package} >& /dev/null) + output=$(${PKG_BINARY} -N info ${package} >/dev/null 2>&1) exit_code=$? # 0=package installed, 70=invalid package elif [ ! -z "${RPMBINARY}" ]; then output=$(${RPMBINARY} --quiet -q ${package} > /dev/null 2>&1)