From: Raphaƫl Gertz Date: Thu, 12 Oct 2023 00:04:04 +0000 (+0200) Subject: Replace egrep with grep -E X-Git-Url: https://git.rapsys.eu/ihttpd/commitdiff_plain?ds=sidebyside Replace egrep with grep -E --- diff --git a/SOURCES/ihttpd.module-setup b/SOURCES/ihttpd.module-setup index 96cb60c..3829829 100644 --- a/SOURCES/ihttpd.module-setup +++ b/SOURCES/ihttpd.module-setup @@ -127,8 +127,8 @@ install() { -i "$initdir/etc/nsswitch.conf" # Require root user and group for our ihttpd process - `egrep -q '^root:' $initdir/etc/group` || egrep '^root:' /etc/group >> "$initdir/etc/group" - `egrep -q '^root:' $initdir/etc/passwd` || egrep '^root:' /etc/passwd >> "$initdir/etc/passwd" + `grep -Eq '^root:' $initdir/etc/group` || grep -E '^root:' /etc/group >> "$initdir/etc/group" + `grep -Eq '^root:' $initdir/etc/passwd` || grep -E '^root:' /etc/passwd >> "$initdir/etc/passwd" # For debug only if false; then