Skip to content

Commit b00f535

Browse files
refactor: add install_boundary function
1 parent 2764f82 commit b00f535

File tree

1 file changed

+9
-5
lines changed
  • registry/coder/modules/claude-code/scripts

1 file changed

+9
-5
lines changed

registry/coder/modules/claude-code/scripts/start.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ echo "--------------------------------"
4747
# avoid exiting if the script fails
4848
bash "/tmp/remove-last-session-id.sh" "$(pwd)" 2> /dev/null || true
4949

50+
function install_boundary() {
51+
# Install boundary from public github repo
52+
git clone https://github.com/coder/boundary
53+
cd boundary
54+
git checkout $ARG_BOUNDARY_VERSION
55+
go install ./cmd/...
56+
}
57+
5058
function validate_claude_installation() {
5159
if command_exists claude; then
5260
printf "Claude Code is installed\n"
@@ -90,11 +98,7 @@ function start_agentapi() {
9098
printf "Running claude code with args: %s\n" "$(printf '%q ' "${ARGS[@]}")"
9199

92100
if [ "${ARG_ENABLE_BOUNDARY:-false}" = "true" ]; then
93-
# Install boundary from public github repo
94-
git clone https://github.com/coder/boundary
95-
cd boundary
96-
git checkout $ARG_BOUNDARY_VERSION
97-
go install ./cmd/...
101+
install_boundary
98102

99103
mkdir -p "$ARG_BOUNDARY_LOG_DIR"
100104
printf "Starting with coder boundary enabled\n"

0 commit comments

Comments
 (0)