Skip to content

Commit

Permalink
use existing xcaddt command if available
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Jan 8, 2025
1 parent 46c38e0 commit 12ce481
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ fi

if ! type "go" >/dev/null 2>&1; then
echo "The \"go\" command must be installed."
exit 1
exit 1
fi

XCADDY_COMMAND="$(go env GOPATH)/bin/xcaddy"

XCADDY_COMMAND="xcaddy"
if ! type "$XCADDY_COMMAND" >/dev/null 2>&1; then
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
XCADDY_COMMAND="$(go env GOPATH)/bin/xcaddy"
fi

curlGitHubHeaders=(--header "X-GitHub-Api-Version: 2022-11-28")
Expand Down

0 comments on commit 12ce481

Please sign in to comment.