-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Not all Linuxes have bash, but practically all of them have sh. From what I can see, there are no features from bash that are not in sh being used. Would it be possible to change the attachToProcess.js from
const command = `bash -c 'uname && if [ $(uname) == "Linux" ] ; then ${nativeAttach_1.PsProcessParser.psLinuxCommand} ; elif [ $(uname) == "Darwin" ] ; ` +
`then ${nativeAttach_1.PsProcessParser.psDarwinCommand}; fi'`;to
const command = `sh -c 'uname && if [ $(uname) == "Linux" ] ; then ${nativeAttach_1.PsProcessParser.psLinuxCommand} ; elif [ $(uname) == "Darwin" ] ; ` +
`then ${nativeAttach_1.PsProcessParser.psDarwinCommand}; fi'`;This comes up more often when using the pipeTransport to debug on other operating systems.
alex-che