Corrected stdout/stderr redirection for FreeBSD pkg tool

This commit is contained in:
Michael Boelen 2019-04-08 07:53:04 +02:00
parent 3516ce9de1
commit 71a0c79053
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 2 additions and 2 deletions

View File

@ -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)