1
0
mirror of https://github.com/CISOfy/lynis.git synced 2025-04-08 17:15:25 +02:00

Merge pull request from hmrodrigues/fix/apk-PackageIsInstalled

Fixed Alpine Linux installed package detection
This commit is contained in:
Michael Boelen 2024-05-14 08:23:54 +02:00 committed by GitHub
commit d9ac616d11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2103,7 +2103,7 @@
output=$(${XBPSBINARY} ${package} 2> /dev/null | ${GREPBINARY} "^ii")
exit_code=$?
elif [ -n "${APKBINARY}" ]; then
output=$(${APKBINARY} search ${package} 2> /dev/null | ${GREPBINARY} ${package})
output=$(${APKBINARY} list --installed ${package} 2> /dev/null | ${GREPBINARY} ${package})
exit_code=$?
else
if [ "${package}" != "__dummy__" ]; then