summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-04-22 13:51:50 -0700
committerGitHub <[email protected]>2025-04-22 13:51:50 -0700
commit5e34d9e2764da1251eb777f4f32e5cf1804ee949 (patch)
treea6882af2cbf32315044a65f68acf437d8492efbd /scripts/build.sh
parent60fc979332572a8ae2f7097cc634e26cb4836269 (diff)
Refactor_sandbox_command (#121)
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index c959f1b6..46304919 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -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