Skip to content

Commit ca35e6f

Browse files
committed
Use js which for all os's
1 parent 354cd21 commit ca35e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export function executableExists(exe: string): boolean {
281281
const isWindows = process.platform === 'win32';
282282
const cmd: string = isWindows ? 'where' : 'which';
283283
const out = child_process.spawnSync(cmd, [exe]);
284-
return out.status === 0 || (!isWindows && (which.sync(exe, { nothrow: true }) ?? '') !== '');
284+
return out.status === 0 || (which.sync(exe, { nothrow: true }) ?? '') !== '';
285285
}
286286

287287
export function directoryExists(path: string): boolean {

0 commit comments

Comments
 (0)