From f4e33ee54e93af66ab8d0df310df07897303e673 Mon Sep 17 00:00:00 2001 From: jammasterj89 Date: Mon, 2 Sep 2019 13:22:28 +0100 Subject: [PATCH] Fixed exclude flag issue with functions_lib.sh Include the all text named functions within functions_lib.sh call if the -e flag is set. Signed-off-by: Niall T --- docker-bench-security.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-bench-security.sh b/docker-bench-security.sh index da6819e..be9e842 100755 --- a/docker-bench-security.sh +++ b/docker-bench-security.sh @@ -138,7 +138,7 @@ main () { cis elif [ -z "$check" ] && [ "$checkexclude" ]; then checkexcluded="$(echo ",$checkexclude" | sed -e 's/^/\^/g' -e 's/,/\$|/g' -e 's/$/\$/g')" - for c in $(grep 'check_[0-9]' functions_lib.sh | grep -vE "$checkexcluded"); do + for c in $(grep -E 'check_[0-9]|check_[a-z]' functions_lib.sh | grep -vE "$checkexcluded"); do "$c" done else