Skip to content

Commit 62d402c

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 18a492c commit 62d402c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/Browserbase/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://docs.browserbase.com/reference/api/openapi.v1.yaml
6+
curl --fail --silent --show-error -o openapi.yaml https://docs.browserbase.com/reference/api/openapi.v1.yaml
77

88
# Auth: --security-scheme overrides the spec's X-BB-API-Key header auth with standard HTTP bearer.
99
autosdk generate openapi.yaml \

0 commit comments

Comments
 (0)