]> Raphaël G. Git Repositories - ihttpd/commitdiff
Replace egrep with grep -E master
authorRaphaël Gertz <git@rapsys.eu>
Thu, 12 Oct 2023 00:04:04 +0000 (02:04 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 12 Oct 2023 00:04:04 +0000 (02:04 +0200)
SOURCES/ihttpd.module-setup

index 96cb60c6ac9df09b11e151cf58c58d4f617e63a2..38298292f15504b07a9990c4dea292b04df0caca 100644 (file)
@@ -127,8 +127,8 @@ install() {
                -i "$initdir/etc/nsswitch.conf"
 
        # Require root user and group for our ihttpd process
                -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
 
        # For debug only
        if false; then