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:
authorKevin <kevin.klopfenstein@bedag.ch>2020-02-21 10:04:08 +0300
committerKevin <kevin.klopfenstein@bedag.ch>2020-02-21 10:06:24 +0300
commit42b2831f758cd5a229a4615f1ffc8a500394ebd4 (patch)
treee7ffae9a284e41ef7efaa5190d6bf395117e8faa /include/functions
parentd81cc71790144ed9ff354748254d300d297f3da6 (diff)
add basic xbps/void support
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index de40a427..7b31cdc3 100644
--- a/include/functions
+++ b/include/functions
@@ -2050,6 +2050,9 @@
elif [ -n "${ZYPPERBINARY}" ]; then
output=$(${ZYPPERBINARY} --quiet --non-interactive search --installed -i ${package} 2> /dev/null | grep "^i")
if [ -n "${output}" ]; then exit_code=0; else exit_code=1; fi
+ elif [ -n "${XBPSBINARY}" ]; then
+ output=$(${XBPSBINARY} ${package} 2> /dev/null | ${GREPBINARY} "^ii")
+ exit_code=$?
else
ReportException "PackageIsInstalled:01"
fi