Fix seatbelt sandboxing when GEMINI_SANDBOX="" and starting with -s (#1298)
This commit is contained in:
parent
3c656cfbc6
commit
6a1c62731b
1 changed files with 6 additions and 1 deletions
|
|
@ -36,7 +36,12 @@ function getSandboxCommand(
|
||||||
}
|
}
|
||||||
|
|
||||||
// note environment variable takes precedence over argument (from command line or settings)
|
// note environment variable takes precedence over argument (from command line or settings)
|
||||||
sandbox = process.env.GEMINI_SANDBOX?.toLowerCase().trim() ?? sandbox;
|
const environmentConfiguredSandbox =
|
||||||
|
process.env.GEMINI_SANDBOX?.toLowerCase().trim() ?? '';
|
||||||
|
sandbox =
|
||||||
|
environmentConfiguredSandbox?.length > 0
|
||||||
|
? environmentConfiguredSandbox
|
||||||
|
: sandbox;
|
||||||
if (sandbox === '1' || sandbox === 'true') sandbox = true;
|
if (sandbox === '1' || sandbox === 'true') sandbox = true;
|
||||||
else if (sandbox === '0' || sandbox === 'false' || !sandbox) sandbox = false;
|
else if (sandbox === '0' || sandbox === 'false' || !sandbox) sandbox = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue