mirror of https://github.com/CISOfy/lynis.git
Removed brackets while searching for home directory entries
This commit is contained in:
parent
ce6693e873
commit
96b21da96a
|
@ -96,7 +96,7 @@
|
|||
if [ ! -z "${REPORTFILE}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no HOME-9350 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Collecting information from home directories"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
IGNORE_HOME_DIRS=$(${GREPBINARY} "^ignore-home-dir[]=" ${REPORTFILE} | ${AWKBINARY} -F= '{ print $2 }')
|
||||
IGNORE_HOME_DIRS=$(${GREPBINARY} "^ignore-home-dir=" ${REPORTFILE} | ${AWKBINARY} -F= '{ print $2 }')
|
||||
if [ -z "${IGNORE_HOME_DIRS}" ]; then
|
||||
LogText "Result: IGNORE_HOME_DIRS empty, no paths excluded"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue