summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurphy Zhou <jencce.kernel@gmail.com>2022-09-20 11:19:51 +0800
committerZorro Lang <zlang@kernel.org>2022-09-20 15:36:51 +0800
commit9a5559da1af7dcd3873d52b0122cf0031b2969df (patch)
tree99c83a9e00170a53a1812860d926171b23f0ccf8
parent1cbaf24e0cc87828504b139f38bfe9c31b05841c (diff)
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 <jencce.kernel@gmail.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r--common/quota2
1 files changed, 1 insertions, 1 deletions
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