summaryrefslogtreecommitdiff
path: root/scripts/sandbox_command.sh
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-04-22 14:31:02 -0700
committerGitHub <[email protected]>2025-04-22 14:31:02 -0700
commita792c4a15966a9020f2ea731f62a24b8868f8679 (patch)
tree86d9e0036885689da1420120a7fb2b67dbf2d14a /scripts/sandbox_command.sh
parent5e34d9e2764da1251eb777f4f32e5cf1804ee949 (diff)
fix .env check (#123)
Diffstat (limited to 'scripts/sandbox_command.sh')
-rwxr-xr-xscripts/sandbox_command.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sandbox_command.sh b/scripts/sandbox_command.sh
index 372d0d50..f22d1295 100755
--- a/scripts/sandbox_command.sh
+++ b/scripts/sandbox_command.sh
@@ -32,7 +32,7 @@ shift $((OPTIND - 1))
# if GEMINI_CODE_SANDBOX is not set, try to source .env in case set there
-if [ -z "${GEMINI_CODE_SANDBOX:-}" ]; then source .env; fi
+if [ -z "${GEMINI_CODE_SANDBOX:-}" ] && [ -f .env ]; then source .env; fi
# if GEMINI_CODE_SANDBOX is still not set, then exit immediately w/ code 1
if [ -z "${GEMINI_CODE_SANDBOX:-}" ]; then exit 1; fi