diff --git a/include/tests_homedirs b/include/tests_homedirs index cfb6f089..595c2fff 100644 --- a/include/tests_homedirs +++ b/include/tests_homedirs @@ -54,9 +54,9 @@ if [ ! "${HOMEDIRS}" = "" ]; then if [ "${OS}" = "Solaris" ]; then # Solaris doesn't support -maxdepth - FIND=`find ${HOMEDIRS} -name ".*history" -not -type f -print` + FIND=`find ${HOMEDIRS} -name ".*history" ! -type f -print` else - FIND=`find ${HOMEDIRS} -maxdepth 1 -name ".*history" -not -type f -print` + FIND=`find ${HOMEDIRS} -maxdepth 1 -name ".*history" ! -type f -print` fi if [ "${FIND}" = "" ]; then Display --indent 2 --text "- Checking shell history files" --result OK --color GREEN