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.
This commit is contained in:
Benjamin Bastian 2025-04-21 22:59:49 -07:00 committed by GitHub
parent f9c4014e28
commit 1eeadcd85c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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=()