diff options
author | Brian C. Lane <bcl@redhat.com> | 2023-03-24 15:47:49 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2023-03-24 15:47:49 -0700 |
commit | de1b566828cb966ea1a870033c97f5afedeaf673 (patch) | |
tree | 00d44560f0ab10bea3ebdd6a6e9825daba7636d8 | |
parent | a198e8d7559c3f78806748e550ec92ccfcc6f240 (diff) | |
download | parted-de1b566828cb966ea1a870033c97f5afedeaf673.tar.gz |
tests: Fix syntax-check warning about grep -q
-rw-r--r-- | tests/t-lib-helpers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t-lib-helpers.sh b/tests/t-lib-helpers.sh index 33151bb..a1d3c30 100644 --- a/tests/t-lib-helpers.sh +++ b/tests/t-lib-helpers.sh @@ -425,6 +425,6 @@ require_64bit_() # Ruturns 0 if the filesystem is available, otherwise skips the test require_filesystem_() { - grep -q $1 /proc/filesystems && return 0 + grep $1 /proc/filesystems >/dev/null && return 0 modprobe --quiet --dry-run $1 || skip_ "this test requires kernel support for $1" } |