Skip to content

Commit

Permalink
Add filetype to find command (#19)
Browse files Browse the repository at this point in the history
This fixes an error when a directory contains "bash" in the name. This
would lead to a shellcheck on a directory and crash.
  • Loading branch information
dadav authored Jun 27, 2020
1 parent 35d6c4c commit c79c26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runaction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit c79c26d

Please sign in to comment.