mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 02:33:42 +02:00
8.1.4_record_date_time_edit.sh 8.1.5_record_user_group_edit.sh
This commit is contained in:
@ -111,7 +111,8 @@ does_pattern_exists_in_file() {
|
||||
local PATTERN=$2
|
||||
|
||||
debug "Checking if $PATTERN is present in $FILE"
|
||||
if $(grep -qE "$PATTERN" $FILE); then
|
||||
debug "grep -qE -- '$PATTERN' $FILE"
|
||||
if $(grep -qE -- "$PATTERN" $FILE); then
|
||||
FNRET=0
|
||||
else
|
||||
FNRET=1
|
||||
|
Reference in New Issue
Block a user