Use POSIX compatible flag, so it also works on BusyBox

This commit is contained in:
mboelen 2015-10-14 10:28:27 +02:00
parent b1437a05ef
commit 6bea4e0334
1 changed files with 2 additions and 2 deletions

View File

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