mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Merge pull request #1450 from hmrodrigues/fix/apk-PackageIsInstalled
Fixed Alpine Linux installed package detection
This commit is contained in:
commit
d9ac616d11
@ -2103,7 +2103,7 @@
|
|||||||
output=$(${XBPSBINARY} ${package} 2> /dev/null | ${GREPBINARY} "^ii")
|
output=$(${XBPSBINARY} ${package} 2> /dev/null | ${GREPBINARY} "^ii")
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
elif [ -n "${APKBINARY}" ]; then
|
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=$?
|
exit_code=$?
|
||||||
else
|
else
|
||||||
if [ "${package}" != "__dummy__" ]; then
|
if [ "${package}" != "__dummy__" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user