diff options
Diffstat (limited to 'scripts/sandbox_command.sh')
| -rwxr-xr-x | scripts/sandbox_command.sh | 2 |
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 |
