Merge pull request #392 from jammasterj89/master

Fixed exclude flag issue with functions_lib.sh
This commit is contained in:
Thomas Sjögren 2019-09-02 14:29:59 +02:00 committed by GitHub
commit 6d73492aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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