btrfs-progs: tests: in mkfs/002 use grep -E instead of egrep

The egrep command is deprecated (per manual page of grep) for a long
time and will probably be removed, the replacement is 'grep -E'.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2022-09-22 15:04:00 +02:00
parent 980ba4e842
commit 9cb5b0d058
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@ check_prereq mkfs.btrfs
setup_root_helper
mixed=$(run_check_stdout "$TOP/mkfs.btrfs" -b 512M -n 64k -f "$TEST_DEV" | egrep 'Data|Metadata')
mixed=$(run_check_stdout "$TOP/mkfs.btrfs" -b 512M -n 64k -f "$TEST_DEV" | grep -E 'Data|Metadata')
echo "$mixed" | grep -q -v 'Data+Metadata:' || _fail "unexpected: created a mixed-bg filesystem"