Sort filelist prior to hashing

This commit is contained in:
Mario Hüttel 2022-07-29 19:05:16 +02:00
parent 0eeea80804
commit bb2839e03a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ search_dir="$1"
filelist=()
while IFS= read -d $'\0' -r file ; do
filelist=("${filelist[@]}" "$file")
done < <(find "$search_dir" -type f -print0)
done < <(find "$search_dir" -type f -print0 | sort -z)
echo "Found ${#filelist[@]} files"