Skip to content

Commit

Permalink
chore: fix update_api.sh script on Windows (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Aug 14, 2023
1 parent 8838e31 commit 8a94f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function update_api {
generate_script="$2"
git checkout HEAD -- "$file_name"

if python "$generate_script" > .x; then
if PYTHONIOENCODING=utf-8 python "$generate_script" > .x; then
mv .x "$file_name"
pre-commit run --files $file_name
echo "Regenerated APIs"
Expand Down

0 comments on commit 8a94f5b

Please sign in to comment.