Skip to content

Commit d183120

Browse files
committed
set lc_all for local and vercel
1 parent e6a422b commit d183120

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Diff for: docs/scripts/build-api-docs.sh

+4-9
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@
99

1010
set -e
1111

12+
# Required to resolve `locale.Error: unsupported locale setting`
13+
export LC_ALL=en_US.UTF-8
14+
1215
# Vercel-specific commands and configurations
13-
if [[ "$OSTYPE" =~ "darwin"* ]]; then
14-
# Required to resolve `locale.Error: unsupported locale setting`
15-
if [ -z "$LC_ALL" ]; then
16-
export LC_ALL=en_US.UTF-8
17-
fi
18-
else
16+
if ! [[ "$OSTYPE" =~ "darwin"* ]]; then
1917
echo "Detected non-Darwin host. Running Vercel-specific commands and configurations"
2018

21-
# Required to resolve `locale.Error: unsupported locale setting`
22-
export LC_ALL=C.UTF-8
23-
2419
if ! command -v uv &> /dev/null; then
2520
curl -LsSf https://astral.sh/uv/install.sh | sh
2621

0 commit comments

Comments
 (0)