From a792c4a15966a9020f2ea731f62a24b8868f8679 Mon Sep 17 00:00:00 2001 From: Olcan Date: Tue, 22 Apr 2025 14:31:02 -0700 Subject: fix .env check (#123) --- scripts/sandbox_command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/sandbox_command.sh') 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 -- cgit v1.2.3