mirror of https://github.com/CISOfy/lynis.git
Use POSIX compatible flag, so it also works on BusyBox
This commit is contained in:
parent
b1437a05ef
commit
6bea4e0334
|
@ -54,9 +54,9 @@
|
||||||
if [ ! "${HOMEDIRS}" = "" ]; then
|
if [ ! "${HOMEDIRS}" = "" ]; then
|
||||||
if [ "${OS}" = "Solaris" ]; then
|
if [ "${OS}" = "Solaris" ]; then
|
||||||
# Solaris doesn't support -maxdepth
|
# Solaris doesn't support -maxdepth
|
||||||
FIND=`find ${HOMEDIRS} -name ".*history" -not -type f -print`
|
FIND=`find ${HOMEDIRS} -name ".*history" ! -type f -print`
|
||||||
else
|
else
|
||||||
FIND=`find ${HOMEDIRS} -maxdepth 1 -name ".*history" -not -type f -print`
|
FIND=`find ${HOMEDIRS} -maxdepth 1 -name ".*history" ! -type f -print`
|
||||||
fi
|
fi
|
||||||
if [ "${FIND}" = "" ]; then
|
if [ "${FIND}" = "" ]; then
|
||||||
Display --indent 2 --text "- Checking shell history files" --result OK --color GREEN
|
Display --indent 2 --text "- Checking shell history files" --result OK --color GREEN
|
||||||
|
|
Loading…
Reference in New Issue