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:
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