Skip to content

Fix container restart loop when sandboxed compiles var is null#41

Open
Musicminion wants to merge 1 commit intoserver-profrom
fix-sandbox-unbound-variable-20260331
Open

Fix container restart loop when sandboxed compiles var is null#41
Musicminion wants to merge 1 commit intoserver-profrom
fix-sandbox-unbound-variable-20260331

Conversation

@Musicminion
Copy link
Copy Markdown
Member

Description

Use ${VAR:-} default value syntax for SANDBOXED_COMPILES_SIBLING_CONTAINERS in env.sh to prevent "unbound variable" error under set -u when the variable is not defined (i.e. when sandboxed compiles is turned off).

Related issues / Pull Requests

Fix container restart loop when sandboxed compiles var is null

Contributor Agreement

Use ${VAR:-} default value syntax for SANDBOXED_COMPILES_SIBLING_CONTAINERS
in env.sh to prevent "unbound variable" error under set -u when the variable
is not defined (i.e. when sandboxed compiles is turned off).
@Musicminion
Copy link
Copy Markdown
Member Author

@codex, what about this fix?

@chatgpt-codex-connector
Copy link
Copy Markdown

Summary

  • Added a follow-up cleanup in server-ce/config/env.sh around the sandboxed compiles fix by removing trailing whitespace in comments and ensuring proper file formatting/newline at EOF, with no behavior change to the ${SANDBOXED_COMPILES_SIBLING_CONTAINERS:-} guard logic. server-ce/config/env.shL16-L22
  • Committed the change on the current branch as f2a28fd and created a follow-up PR titled “Follow-up: tidy env.sh around sandboxed compiles null-var fix”.

Testing

  • bash -uc 'unset SANDBOXED_COMPILES_SIBLING_CONTAINERS; source server-ce/config/env.sh; echo "ok-unset:${TEXLIVE_IMAGE_USER-<unset>}"'
  • bash -uc 'export SANDBOXED_COMPILES_SIBLING_CONTAINERS=true; source server-ce/config/env.sh; echo "ok-true:${TEXLIVE_IMAGE_USER-<unset>}"'

View task →

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants