From c79c26d324c7a46ae86c33d2f4af898561067005 Mon Sep 17 00:00:00 2001 From: Daniel <33197631+dadav@users.noreply.github.com> Date: Sat, 27 Jun 2020 11:43:04 +0200 Subject: [PATCH] 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. --- runaction.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runaction.sh b/runaction.sh index b69c50f..367db50 100755 --- a/runaction.sh +++ b/runaction.sh @@ -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' \