Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/child-subshell/shell.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import child_process, { ChildProcessWithoutNullStreams } from 'child_process'
import os from 'os'
import { Logger } from './types'

export default class Shell {
Expand All @@ -14,7 +15,8 @@ export default class Shell {

this.process = child_process.spawn('bash', ['--noprofile', '--norc'], {
env,
detached: true,
// use detached mode except on Windows where it's not compatible with all builds of bash
detached: os.platform() !== "win32",
})

this.process.stdout.setEncoding('utf8')
Expand Down