Sort filelist prior to hashing
This commit is contained in:
parent
0eeea80804
commit
bb2839e03a
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user