mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
allow SEATBELT_PROFILE=none to disable seatbelt on macos (#296)
This commit is contained in:
@@ -48,7 +48,8 @@ export function sandbox_command(sandbox?: string | boolean): string {
|
||||
// if we are on macOS (Darwin) and sandbox-exec is available, use that for minimal sandboxing
|
||||
if (
|
||||
os.platform() === 'darwin' &&
|
||||
execSync('command -v sandbox-exec || true').toString().trim()
|
||||
execSync('command -v sandbox-exec || true').toString().trim() &&
|
||||
process.env.SEATBELT_PROFILE !== 'none'
|
||||
) {
|
||||
return 'sandbox-exec';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user