diff --git a/dirsha256sum b/dirsha256sum index 3d28b6a..561ffe5 100755 --- a/dirsha256sum +++ b/dirsha256sum @@ -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"