]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1304-default-acl.sh
t: convert egrep usage to "grep -E"
[thirdparty/git.git] / t / t1304-default-acl.sh
index 335d3f3211aa874fd3a8e0d0006dd9fc53a4e589..c69ae41306c90d33b2ac253a25961ae76fec81e7 100755 (executable)
@@ -18,7 +18,7 @@ test_expect_success 'checking for a working acl setup' '
        if setfacl -m d:m:rwx -m u:root:rwx . &&
           getfacl . | grep user:root:rwx &&
           touch should-have-readable-acl &&
-          getfacl should-have-readable-acl | egrep "mask::?rw-"
+          getfacl should-have-readable-acl | grep -E "mask::?rw-"
        then
                test_set_prereq SETFACL
        fi
@@ -34,7 +34,7 @@ check_perms_and_acl () {
        getfacl "$1" > actual &&
        grep -q "user:root:rwx" actual &&
        grep -q "user:${LOGNAME}:rwx" actual &&
-       egrep "mask::?r--" actual > /dev/null 2>&1 &&
+       grep -E "mask::?r--" actual > /dev/null 2>&1 &&
        grep -q "group::---" actual || false
 }