diff options
| author | Benjamin Bastian <[email protected]> | 2025-04-21 22:59:49 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-21 22:59:49 -0700 |
| commit | 1eeadcd85cad317f41744f44246e8ab26188d6aa (patch) | |
| tree | 3298ce17fee4527e11d85dfa79cf77e1b2f73c3b /scripts/start_sandbox.sh | |
| parent | f9c4014e286194b8ba2e97dbb680cf92c0597c60 (diff) | |
Update sandbox script to not require term variables (#105)
If `nounset` is active, it'll require that TERM and COLORTERM is set in the
environment. It's not necessary that these variables are set and it should be
passed to the sandbox. This change just causes the TERM and COLORTERM to be set
to an empty string if they are unset.
Diffstat (limited to 'scripts/start_sandbox.sh')
| -rwxr-xr-x | scripts/start_sandbox.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/start_sandbox.sh b/scripts/start_sandbox.sh index 9a79319b..236b1621 100755 --- a/scripts/start_sandbox.sh +++ b/scripts/start_sandbox.sh @@ -50,7 +50,7 @@ run_args+=(--name "$IMAGE-$INDEX" --hostname "$IMAGE-$INDEX") run_args+=(--env "SANDBOX=$IMAGE-$INDEX") # pass TERM and COLORTERM to container to maintain terminal colors -run_args+=(--env "TERM=$TERM" --env "COLORTERM=$COLORTERM") +run_args+=(--env "TERM=${TERM:-}" --env "COLORTERM=${COLORTERM:-}") # enable debugging via node --inspect-brk (and $DEBUG_PORT) if DEBUG is set node_args=() @@ -62,4 +62,4 @@ node_args+=("$CLI_PATH" "$@") # run gemini-code in sandbox container # use empty --authfile to skip unnecessary auth refresh overhead -$CMD run "${run_args[@]}" --init --authfile <(echo '{}') --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}"
\ No newline at end of file +$CMD run "${run_args[@]}" --init --authfile <(echo '{}') --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}" |
