diff options
Diffstat (limited to 'scripts/start.sh')
| -rwxr-xr-x | scripts/start.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/start.sh b/scripts/start.sh index b85a8af0..2c24c61d 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,5 +1,14 @@ #!/bin/bash set -euo pipefail +# check build status, write warnings to file for app to display if needed node ./scripts/check-build-status.js -node node_modules/@gemini-code/cli "$@"
\ No newline at end of file + +# if GEMINI_CODE_SANDBOX is set (can be in .env file), start in sandbox container +if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(1|true)$ ]] || grep -qiE '^GEMINI_CODE_SANDBOX *= *(1|true)' .env; then + echo "Running in sandbox container ..." + scripts/start_sandbox.sh "$@" +else + echo "WARNING: running outside of sandbox. Set GEMINI_CODE_SANDBOX to enable sandbox." + node node_modules/@gemini-code/cli "$@" +fi
\ No newline at end of file |
