Skip to content

Commit de2d77e

Browse files
committed
test: Use grep -E instead of egrep
The latter has been deprecated.
1 parent c186472 commit de2d77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ test_path_exists () {
867867
test_dir_is_empty () {
868868
test "$#" -ne 1 && BUG "1 param"
869869
test_path_is_dir "$1" &&
870-
if test -n "$(ls -a1 "$1" | egrep -v '^\.\.?$')"
870+
if test -n "$(ls -a1 "$1" | grep -E -v '^\.\.?$')"
871871
then
872872
echo "Directory '$1' is not empty, it contains:"
873873
ls -la "$1"

0 commit comments

Comments
 (0)