From: Murphy Zhou Date: Tue, 20 Sep 2022 03:19:51 +0000 (+0800) Subject: common/quota: fix grep pattern X-Git-Tag: v2022.09.25~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a5559da1af7dcd3873d52b0122cf0031b2969df;p=xfstests-dev.git common/quota: fix grep pattern The second dash is not needed now. Newer grep is complaining: +grep: warning: stray \ before - Signed-off-by: Murphy Zhou Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/common/quota b/common/quota index 22be3c69..24251d09 100644 --- a/common/quota +++ b/common/quota @@ -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