make sure that globs also specify files only

This commit is contained in:
Emil Lerch 2025-07-10 17:52:57 -07:00
parent 45793dadd8
commit 83e6f9074c
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -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