mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Set hyphen as last character to allow it being matched
This commit is contained in:
parent
1823bf1040
commit
a310c43176
@ -59,7 +59,7 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Now parse the profile and filter out unwanted characters
|
# Now parse the profile and filter out unwanted characters
|
||||||
DATA=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | tr -dc '[:alnum:]/\[\]\(\)\-_\|,\.:;= \n\r' | sed 's/ /!space!/g')
|
DATA=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | tr -dc '[:alnum:]/\[\]\(\)_\|,\.:;= \n\r-' | sed 's/ /!space!/g')
|
||||||
for CONFIGOPTION in ${DATA}; do
|
for CONFIGOPTION in ${DATA}; do
|
||||||
if ContainsString "^config:" "${CONFIGOPTION}"; then
|
if ContainsString "^config:" "${CONFIGOPTION}"; then
|
||||||
# Old style configuration
|
# Old style configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user