Only show suggestion when shell does not exist [AUTH-9218]

This commit is contained in:
mboelen 2015-01-15 23:21:17 +01:00
parent 44a530719c
commit ef531081bc
1 changed files with 1 additions and 1 deletions

View File

@ -169,12 +169,12 @@
logtext "Result: found no shell on line" logtext "Result: found no shell on line"
else else
logtext "Result: found possible harmful shell ${J}" logtext "Result: found possible harmful shell ${J}"
ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist"
if [ -f ${J} ]; then if [ -f ${J} ]; then
logtext "Result: shell ${J} does exist" logtext "Result: shell ${J} does exist"
FOUND=1 FOUND=1
else else
logtext "Result: shell ${J} does not exist" logtext "Result: shell ${J} does not exist"
ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist"
fi fi
fi fi
done done