From 6100dc91a1873c93420e7faaa095e448e8b51b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 14 Jul 2023 09:41:18 +0200 Subject: [PATCH] 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. --- utils/oscap-podman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/oscap-podman b/utils/oscap-podman index 0ee89b6b48..3c01471882 100755 --- a/utils/oscap-podman +++ b/utils/oscap-podman @@ -61,7 +61,7 @@ fi if [ "$(id -u)" -ne 0 ]; then die "This script cannot run in rootless mode." fi -if grep -q "\-\-remediate" <<< "$@"; then +if grep -q -- "--remediate" <<< "$@"; then die "This script does not support '--remediate' option." fi