From: Yu Watanabe Date: Sat, 11 Dec 2021 02:54:01 +0000 (+0900) Subject: test: fix grepping fixed string starts from hyphen X-Git-Tag: v250-rc3~70^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c18f18745b6569b3058d4099986189551bebe6e8;p=thirdparty%2Fsystemd.git test: fix grepping fixed string starts from hyphen Follow-up for 85445fba22b2f81853a3f018ed1f28864cef37fc. Fixes #21718. --- diff --git a/test/units/testsuite-62.sh b/test/units/testsuite-62.sh index 2f3b18bec3d..da40c2f1e79 100755 --- a/test/units/testsuite-62.sh +++ b/test/units/testsuite-62.sh @@ -47,7 +47,7 @@ if [[ "$KERNEL_MAJOR" -lt $MAJOR_REQUIRED || ("$KERNEL_MAJOR" -eq $MAJOR_REQUIRE exit 0 fi -if systemctl --version | grep -q -F "-BPF_FRAMEWORK"; then +if systemctl --version | grep -q -F -- "-BPF_FRAMEWORK"; then echo "bpf-framework is disabled" >>/skipped exit 0 fi