Skip to content

Commit

Permalink
fix: windows cmd detection (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaski committed Mar 1, 2023
1 parent 1a7e9e4 commit d28d42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -19,7 +19,7 @@ export function cmdExists(cmd: string) {
// #8
execSync(
os.platform() === 'win32'
? `cmd /c "(help ${cmd} > nul || exit 0) && where ${cmd} > nul 2> nul"`
? `where ${cmd} > nul 2> nul"`
: `command -v ${cmd}`,
)
return true
Expand Down

0 comments on commit d28d42d

Please sign in to comment.