We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LC_ALL=C
2 parents ba17fe5 + 34a791d commit 058e632Copy full SHA for 058e632
generateIndices.sh
@@ -7,7 +7,7 @@ generate_indices() {
7
local index_file="$dir/index.ts"
8
9
local -a ts_files
10
- mapfile -t ts_files < <(find "$dir" -maxdepth 1 -type f -name "*.ts" ! -name "index.ts" | sort)
+ mapfile -t ts_files < <(find "$dir" -maxdepth 1 -type f -name "*.ts" ! -name "index.ts" | LC_ALL=C sort)
11
if [[ ${#ts_files[@]} -eq 0 ]]; then
12
return
13
fi
@@ -22,7 +22,7 @@ generate_indices() {
22
done
23
24
local -a subdirs
25
- mapfile -t subdirs < <(find "$dir" -mindepth 1 -maxdepth 1 -type d | sort)
+ mapfile -t subdirs < <(find "$dir" -mindepth 1 -maxdepth 1 -type d | LC_ALL=C sort)
26
for subdir in "${subdirs[@]}"; do
27
generate_indices "$subdir"
28
0 commit comments