From ef531081bcf88477211cb76279a2b55d5cbc1866 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 15 Jan 2015 23:21:17 +0100 Subject: [PATCH] Only show suggestion when shell does not exist [AUTH-9218] --- include/tests_authentication | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_authentication b/include/tests_authentication index 3e3f3cb0..3cd2ff91 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -169,12 +169,12 @@ logtext "Result: found no shell on line" else 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 logtext "Result: shell ${J} does exist" FOUND=1 else logtext "Result: shell ${J} does not exist" + ReportSuggestion ${TEST_NO} "Determine if account is needed, as shell ${J} does not exist" fi fi done