Skip to content

Commit 6100dc9

Browse files
committed
Avoid grep warning on oscap-podman invocation
grep: warning: stray \ before - is printed by GNU grep 3.11. This can be fixed by terminating the argument parsing before by using ' -- ' which then avoids the quoting alltogether.
1 parent 9f83ba0 commit 6100dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/oscap-podman

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fi
6161
if [ "$(id -u)" -ne 0 ]; then
6262
die "This script cannot run in rootless mode."
6363
fi
64-
if grep -q "\-\-remediate" <<< "$@"; then
64+
if grep -q -- "--remediate" <<< "$@"; then
6565
die "This script does not support '--remediate' option."
6666
fi
6767

0 commit comments

Comments
 (0)