Skip to content
Permalink
Browse files

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 <jammasterj89@gmail.com>
  • Loading branch information...
jammasterj89 committed Sep 2, 2019
1 parent b354514 commit f4e33ee54e93af66ab8d0df310df07897303e673
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit f4e33ee

Please sign in to comment.
You can’t perform that action at this time.