mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
Refactor_sandbox_command (#121)
This commit is contained in:
parent
60fc979332
commit
5e34d9e276
7 changed files with 90 additions and 42 deletions
|
|
@ -23,9 +23,8 @@ fi
|
|||
# build all workspaces/packages
|
||||
npm run build --workspaces
|
||||
|
||||
# also build container image if GEMINI_CODE_SANDBOX is set (can be in .env file)
|
||||
# also build container image if sandboxing is enabled
|
||||
# skip (-s) npm install + build since we did that above
|
||||
if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(1|true)$ ]] || \
|
||||
{ [ -f .env ] && grep -qiE '^GEMINI_CODE_SANDBOX *= *(1|true)' .env; }; then
|
||||
if scripts/sandbox_command.sh -q; then
|
||||
scripts/build_sandbox.sh -s
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue