summaryrefslogtreecommitdiff
path: root/scripts/start.js
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-06-10 08:58:37 -0700
committerGitHub <[email protected]>2025-06-10 08:58:37 -0700
commite38d2078cc70b0453ef70523a8ad38279941aca2 (patch)
treeb5a4024d1c006a2d116631ac7a51bb5b0eaf34a6 /scripts/start.js
parent895c1f132f9d1cc88bd56584e461fd22a5f23394 (diff)
restricted networking for all sandboxing methods, new seatbelt profiles, updated docs, fixes to sandbox build, debugging through sandbox (#891)
Diffstat (limited to 'scripts/start.js')
-rw-r--r--scripts/start.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/start.js b/scripts/start.js
index f9f85c8e..d38e00f6 100644
--- a/scripts/start.js
+++ b/scripts/start.js
@@ -33,11 +33,12 @@ execSync('node ./scripts/check-build-status.js', {
// inside sandbox SANDBOX should be set and sandbox_command.js should fail
const nodeArgs = [];
try {
- execSync('node scripts/sandbox_command.js -q', {
- stdio: 'inherit',
+ const sandboxCommand = execSync('node scripts/sandbox_command.js', {
cwd: root,
- });
- if (process.env.DEBUG) {
+ })
+ .toString()
+ .trim();
+ if (process.env.DEBUG && !sandboxCommand) {
if (process.env.SANDBOX) {
const port = process.env.DEBUG_PORT || '9229';
nodeArgs.push(`--inspect-brk=0.0.0.0:${port}`);