From 505a085d98a2ea32c9cd7c5b6960f091ed6cdfe7 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Mon, 11 Jul 2022 12:34:28 +0100 Subject: [PATCH] updated check_shell_commands_dash_protections.sh --- check_shell_commands_dash_protections.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_shell_commands_dash_protections.sh b/check_shell_commands_dash_protections.sh index 1eabe912..93dd059c 100755 --- a/check_shell_commands_dash_protections.sh +++ b/check_shell_commands_dash_protections.sh @@ -35,7 +35,7 @@ help_usage "$@" check(){ local cmd="$1" - command git grep -E "\\<$cmd[[:space:]]+" | + command git grep -E "^[^#]*\\<$cmd[[:space:]]+" | grep -v -e '--' \ -e "${0##*/}:" \ -e '\.gitconfig:' \