Skip to content

Commit 790a4fa

Browse files
committed
fix(parse): specify format for wmic output
1 parent cd188c9 commit 790a4fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ts/ps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const kill = (pid: string | number, opts?: TPsNext | TPsKillOptions | TPs
194194

195195
export const parseGrid = (output: string) =>
196196
output
197-
? formatOutput(parse(output))
197+
? formatOutput(parse(output, { format: IS_WIN ? 'win' : 'unix' }))
198198
: []
199199

200200
export const formatOutput = (data: TIngridResponse): TPsLookupEntry[] =>

0 commit comments

Comments
 (0)