diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-04-08 08:53:04 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-04-08 08:53:04 +0300 |
commit | 71a0c79053119fedfcb68d47c7b4483b16a8ec1c (patch) | |
tree | 5f255b748d1d5d30ae8c303a737fff8c7cd9f7c6 | |
parent | 3516ce9de10528f08f949b09daa179e949b0596c (diff) |
Corrected stdout/stderr redirection for FreeBSD pkg tool
-rw-r--r-- | include/functions | 4 |
1 files 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) |