Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-04-03 13:46:03 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-04-03 13:46:03 +0300
commit247eb7d9a6bc50fa06ac33d3a118d79f7b24cc2c (patch)
tree41b374c1d47ab86117f8d5059b13558260dec2ab
parente0ca517aaa88e6954a1b3cda79f2cb5b70a12c7b (diff)
Corrected if-statement
-rw-r--r--include/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions b/include/functions
index 95083600..e8965986 100644
--- a/include/functions
+++ b/include/functions
@@ -1717,7 +1717,7 @@
if [ ! -z "${RPMBINARY}" ]; then
output=$(${RPMBINARY} --quiet -q ${package} 2> /dev/null)
exit_code=$?
- elif ! -z "${DPKGBINARY}" ]; then
+ elif [ ! -z "${DPKGBINARY}" ]; then
output=$(${DPKGBINARY} -l ${package} 2> /dev/null)
exit_code=$?
elif [ ! -z "${ZYPPERBINARY}" ]; then