mirror of https://github.com/CISOfy/lynis.git
Corrected stdout/stderr redirection for FreeBSD pkg tool
This commit is contained in:
parent
3516ce9de1
commit
71a0c79053
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue