Skip to content

Commit 4bdd7ab

Browse files
HavenDVclaude
andcommitted
Standardize generate.sh: dotnet tool install + curl --fail
Simplify tool install to just `dotnet tool install --global` (works whether already installed or not). Add --fail --silent --show-error to curl invocations so the script aborts on HTTP errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ed0e19 commit 4bdd7ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/DeepL/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
dotnet tool update --global autosdk.cli --prerelease || dotnet tool install --global autosdk.cli --prerelease
4+
dotnet tool install --global autosdk.cli --prerelease
55
rm -rf Generated
6-
curl -o openapi.yaml https://raw.githubusercontent.com/DeepLcom/openapi/main/openapi.yaml
6+
curl --fail --silent --show-error -o openapi.yaml https://raw.githubusercontent.com/DeepLcom/openapi/main/openapi.yaml
77

88
# Fix auth: convert apiKey → http/bearer for AutoSDK constructor generation
99
yq -i '

0 commit comments

Comments
 (0)