do not even check sandboxing commands (podman/docker/etc) if we are already in sandbox (#213)

This commit is contained in:
Olcan
2025-04-29 10:52:05 -07:00
committed by GitHub
parent 4cb7386ec6
commit 4793e86f04

View File

@@ -252,12 +252,14 @@ async function main() {
const config = loadCliConfig();
let input = config.getQuestion();
// hop into sandbox if enabled but outside
const sandbox = sandbox_command();
if (sandbox && !process.env.SANDBOX) {
console.log('hopping into sandbox ...');
await start_sandbox(sandbox);
process.exit(0);
// hop into sandbox if we are outside and sandboxing is enabled
if (!process.env.SANDBOX) {
const sandbox = sandbox_command();
if (sandbox) {
console.log('hopping into sandbox ...');
await start_sandbox(sandbox);
process.exit(0);
}
}
// Render UI, passing necessary config values. Check that there is no command line question.