summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-04-21 11:21:48 -0700
committerGitHub <[email protected]>2025-04-21 11:21:48 -0700
commit618f8a43cf9402aba7d441341a46a229c92502dd (patch)
tree960e3c1801b10c0fd4952eb4e5610d6d771fa5e1 /scripts/build.sh
parent0a531f732b15834bec38fc77e9aad862ca7add24 (diff)
don't assume .env file (#83)
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 562f55e1..c959f1b6 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -25,8 +25,7 @@ npm run build --workspaces
# also build container image if GEMINI_CODE_SANDBOX is set (can be in .env file)
# skip (-s) npm install + build since we did that above
-if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(1|true)$ ]]; then
- scripts/build_sandbox.sh -s
-elif [ -f .env ] && grep -qiE '^GEMINI_CODE_SANDBOX *= *(1|true)' .env; then
+if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(1|true)$ ]] || \
+ { [ -f .env ] && grep -qiE '^GEMINI_CODE_SANDBOX *= *(1|true)' .env; }; then
scripts/build_sandbox.sh -s
fi