do not even check sandboxing commands (podman/docker/etc) if we are already in sandbox (#213)
This commit is contained in:
parent
4cb7386ec6
commit
4793e86f04
1 changed files with 8 additions and 6 deletions
|
|
@ -252,12 +252,14 @@ async function main() {
|
||||||
const config = loadCliConfig();
|
const config = loadCliConfig();
|
||||||
let input = config.getQuestion();
|
let input = config.getQuestion();
|
||||||
|
|
||||||
// hop into sandbox if enabled but outside
|
// hop into sandbox if we are outside and sandboxing is enabled
|
||||||
const sandbox = sandbox_command();
|
if (!process.env.SANDBOX) {
|
||||||
if (sandbox && !process.env.SANDBOX) {
|
const sandbox = sandbox_command();
|
||||||
console.log('hopping into sandbox ...');
|
if (sandbox) {
|
||||||
await start_sandbox(sandbox);
|
console.log('hopping into sandbox ...');
|
||||||
process.exit(0);
|
await start_sandbox(sandbox);
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render UI, passing necessary config values. Check that there is no command line question.
|
// Render UI, passing necessary config values. Check that there is no command line question.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue