Skip to content

Commit eb07e62

Browse files
authored
Merge branch 'main' into 31-cookies
2 parents 3ec3d75 + 058e632 commit eb07e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generateIndices.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ generate_indices() {
77
local index_file="$dir/index.ts"
88

99
local -a ts_files
10-
mapfile -t ts_files < <(find "$dir" -maxdepth 1 -type f -name "*.ts" ! -name "index.ts" | sort)
10+
mapfile -t ts_files < <(find "$dir" -maxdepth 1 -type f -name "*.ts" ! -name "index.ts" | LC_ALL=C sort)
1111
if [[ ${#ts_files[@]} -eq 0 ]]; then
1212
return
1313
fi
@@ -22,7 +22,7 @@ generate_indices() {
2222
done
2323

2424
local -a subdirs
25-
mapfile -t subdirs < <(find "$dir" -mindepth 1 -maxdepth 1 -type d | sort)
25+
mapfile -t subdirs < <(find "$dir" -mindepth 1 -maxdepth 1 -type d | LC_ALL=C sort)
2626
for subdir in "${subdirs[@]}"; do
2727
generate_indices "$subdir"
2828
done

0 commit comments

Comments
 (0)