diff --git a/entrypoint.sh b/entrypoint.sh index 896a617..e086546 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,7 +33,7 @@ glob="$(basename "${INPUT_FILES}")" if [ "${glob}" = "**" ]; then all_files="$(find "$dir" -type f |sort)" else - all_files="$(find "$dir" -maxdepth 1 -name "${glob}" |sort)" + all_files="$(find "$dir" -maxdepth 1 -name "${glob}" -type f |sort)" fi i=0 while IFS= read -r f; do