Merge pull request #343 from boblington/master

fix bugs in -e option
This commit is contained in:
Thomas Sjögren 2018-11-12 09:55:55 +01:00 committed by GitHub
commit 3887a4095d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ main () {
cis
elif [ -z "$check" ] && [ "$checkexclude" ]; then
checkexcluded="$(echo ",$checkexclude" | sed -e 's/^/\^/g' -e 's/,/\$|/g' -e 's/$/\$/g')"
grep 'check_[0-9]_' functions_lib.sh | grep -vE "\'$checkexcluded\'" | while read -r c; do
for c in $(grep 'check_[0-9]' functions_lib.sh | grep -vE "$checkexcluded"); do
"$c"
done
else