Add filetype to find command (#19)

This fixes an error when a directory contains "bash" in the name. This
would lead to a shellcheck on a directory and crash.
This commit is contained in:
Daniel 2020-06-27 11:43:04 +02:00 committed by GitHub
parent 35d6c4c933
commit c79c26d324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ for path in ${INPUT_IGNORE}; do
excludes+=(! -path "*/${path}/*" )
done
readarray -d '' filepaths < <(find . "${excludes[@]}" \
readarray -d '' filepaths < <(find . -type f "${excludes[@]}" \
'(' \
\
-name '*.bash' \