Browse Source

Use `grep -E` instead of `egrep` (#102)

because GNU grep developers in GNU grep 3.8 release notice said:

>  The egrep and fgrep commands, which have been deprecated since
     release 2.5.3 (2007), now warn that they are obsolescent and should
     be replaced by grep -E and grep -F.

Signed-off-by: Mobin Aydinfar <mobin@mobintestserver.ir>
Reviewed-by: Davin McCall <EMAIL HIDDEN>
Mobin 1 year ago
parent
commit
e3b1c949f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/linux/services/modules.sh

+ 1 - 1
doc/linux/services/modules.sh

@@ -9,7 +9,7 @@ case "${1}" in
     start)
 
         # Exit if there's no modules file or there are no valid entries
-        [ -r ${MODULES} ] && egrep -qv '^($|#)' ${MODULES} || exit 0
+        [ -r ${MODULES} ] && grep -Eqv '^($|#)' ${MODULES} || exit 0
 
         while read module args; do