Skip to content

Commit f4e33ee

Browse files
authored
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 <[email protected]>
1 parent b354514 commit f4e33ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-bench-security.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ main () {
138138
cis
139139
elif [ -z "$check" ] && [ "$checkexclude" ]; then
140140
checkexcluded="$(echo ",$checkexclude" | sed -e 's/^/\^/g' -e 's/,/\$|/g' -e 's/$/\$/g')"
141-
for c in $(grep 'check_[0-9]' functions_lib.sh | grep -vE "$checkexcluded"); do
141+
for c in $(grep -E 'check_[0-9]|check_[a-z]' functions_lib.sh | grep -vE "$checkexcluded"); do
142142
"$c"
143143
done
144144
else

0 commit comments

Comments
 (0)