make sure that globs also specify files only
This commit is contained in:
parent
45793dadd8
commit
83e6f9074c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue