Skip to content

Commit

Permalink
fix: failed to get machine id on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Apr 3, 2024
1 parent 86edaec commit 8880bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class Machini {
return;
}

const output = stdout.split('\r\n')?.[0] || '';
const output = (platformName === 'win32') ? stdout : (stdout.split('\r\n')?.[0] || '');

if (extractRegex) {
const extractOutput = extractRegex.exec(output)?.[1];
Expand Down

0 comments on commit 8880bc8

Please sign in to comment.