diff --git a/include/tests_shells b/include/tests_shells index 5a0c3d34..c0a5336f 100644 --- a/include/tests_shells +++ b/include/tests_shells @@ -215,7 +215,7 @@ FOUND=0 Display --indent 2 --text "- Testing for Shellshock vulnerability" logtext "Test: Check if bash is in the list of shells." - FIND=`egrep '(/usr)?(/local)?/bin/bash' /etc/shells` + FIND=`egrep '(/usr)?(/local)?/bin/bash' /etc/shells | grep -v "^#" | head -1` if [ ! "${FIND}" = "" -a ! -L ${FIND} ]; then logtext "Result: found ${FIND} as a valid shell"