Skip to content

Commit

Permalink
fix(parse): specify format for wmic output
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 26, 2024
1 parent cd188c9 commit 790a4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ts/ps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const kill = (pid: string | number, opts?: TPsNext | TPsKillOptions | TPs

export const parseGrid = (output: string) =>
output
? formatOutput(parse(output))
? formatOutput(parse(output, { format: IS_WIN ? 'win' : 'unix' }))
: []

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

0 comments on commit 790a4fa

Please sign in to comment.