mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
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>
This commit is contained in:
parent
b354514d29
commit
f4e33ee54e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue