]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/quota: fix grep pattern
authorMurphy Zhou <jencce.kernel@gmail.com>
Tue, 20 Sep 2022 03:19:51 +0000 (11:19 +0800)
committerZorro Lang <zlang@kernel.org>
Tue, 20 Sep 2022 07:36:51 +0000 (15:36 +0800)
The second dash is not needed now. Newer grep is complaining:
+grep: warning: stray \ before -

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/quota

index 22be3c6948a731bd350f9885bae4b30534294ab3..24251d092a625562a1d8615ba60123d825c9582a 100644 (file)
@@ -218,7 +218,7 @@ _qmount()
         quotacheck -ug $SCRATCH_MNT >>$seqres.full 2>&1
         quotaon -ug $SCRATCH_MNT >>$seqres.full 2>&1
         # try to turn on project quota if it's supported
-        if quotaon --help 2>&1 | grep -q '\-\-project'; then
+        if quotaon --help 2>&1 | grep -q -- '--project'; then
             quotaon --project $SCRATCH_MNT >>$seqres.full 2>&1
         fi
     fi