File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,9 @@ export class RemoteAttachPicker {
132
132
shPrefix = `/bin/` ;
133
133
}
134
134
135
- return `${ outerQuote } ${ shPrefix } sh -c ${ innerQuote } uname && if [ ${ parameterBegin } uname${ parameterEnd } = ${ escapedQuote } Linux${ escapedQuote } ] ; ` +
136
- `then ${ PsProcessParser . psLinuxCommand } ; elif [ ${ parameterBegin } uname${ parameterEnd } = ${ escapedQuote } Darwin${ escapedQuote } ] ; ` +
135
+ return `${ outerQuote } ${ shPrefix } sh -c ${ innerQuote } uname && if [ ${ parameterBegin } uname -o${ parameterEnd } = ${ escapedQuote } Toybox${ escapedQuote } ] ; ` +
136
+ `then ${ PsProcessParser . psToyboxCommand } ; elif [ ${ parameterBegin } uname${ parameterEnd } = ${ escapedQuote } Darwin${ escapedQuote } ] ; ` +
137
+ `then ${ PsProcessParser . psLinuxCommand } ; elif [ ${ parameterBegin } uname${ parameterEnd } = ${ escapedQuote } Linux${ escapedQuote } ] ; ` +
137
138
`then ${ PsProcessParser . psDarwinCommand } ; fi${ innerQuote } ${ outerQuote } ` ;
138
139
}
139
140
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ export class PsProcessParser {
119
119
// Since 'args' contains the full path to the executable, even if truncated, searching will work as desired.
120
120
public static get psLinuxCommand ( ) : string { return `ps axww -o pid=,comm=${ PsProcessParser . commColumnTitle } ,args=` ; }
121
121
public static get psDarwinCommand ( ) : string { return `ps axww -o pid=,comm=${ PsProcessParser . commColumnTitle } ,args= -c` ; }
122
+ public static get psToyboxCommand ( ) : string { return `ps -A -o pid=,comm=${ PsProcessParser . commColumnTitle } ,args=` ; }
122
123
123
124
// Only public for tests.
124
125
public static ParseProcessFromPs ( processes : string ) : Process [ ] {
You can’t perform that action at this time.
0 commit comments