mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-02-23 04:59:22 +01:00
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:
parent
35d6c4c933
commit
c79c26d324
@ -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' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user