We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354cd21 commit ca35e6fCopy full SHA for ca35e6f
src/utils.ts
@@ -281,7 +281,7 @@ export function executableExists(exe: string): boolean {
281
const isWindows = process.platform === 'win32';
282
const cmd: string = isWindows ? 'where' : 'which';
283
const out = child_process.spawnSync(cmd, [exe]);
284
- return out.status === 0 || (!isWindows && (which.sync(exe, { nothrow: true }) ?? '') !== '');
+ return out.status === 0 || (which.sync(exe, { nothrow: true }) ?? '') !== '';
285
}
286
287
export function directoryExists(path: string): boolean {
0 commit comments