Skip to content

Commit

Permalink
fix get system uname issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankll committed Jul 9, 2023
1 parent 67d4877 commit 6b17c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const isFileExists = async (path: string): Promise<boolean> => {

export const platform = async () => {
debug('checking platform');
const { stdout: sysName } = await execa('uname', ['-o']);
const { stdout: sysName } = await execa('uname', ['-s']);
const { stdout: arch } = await execa('uname', ['-m']);

return { sysName: sysName.toLowerCase(), arch: arch.toLowerCase() };
Expand Down

0 comments on commit 6b17c0d

Please sign in to comment.