mirror of https://github.com/CISOfy/lynis.git
Corrected if-statement
This commit is contained in:
parent
e0ca517aaa
commit
247eb7d9a6
|
@ -1717,7 +1717,7 @@
|
||||||
if [ ! -z "${RPMBINARY}" ]; then
|
if [ ! -z "${RPMBINARY}" ]; then
|
||||||
output=$(${RPMBINARY} --quiet -q ${package} 2> /dev/null)
|
output=$(${RPMBINARY} --quiet -q ${package} 2> /dev/null)
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
elif ! -z "${DPKGBINARY}" ]; then
|
elif [ ! -z "${DPKGBINARY}" ]; then
|
||||||
output=$(${DPKGBINARY} -l ${package} 2> /dev/null)
|
output=$(${DPKGBINARY} -l ${package} 2> /dev/null)
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
elif [ ! -z "${ZYPPERBINARY}" ]; then
|
elif [ ! -z "${ZYPPERBINARY}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue