paths: fix searching in PATH sometimes being misleading
This commit is contained in:
parent
8b0ed9a798
commit
675d0bb5af
@ -46,7 +46,7 @@ const exists = async path => {
|
|||||||
if (path.includes(sep)) return await access(path).then(() => true).catch(() => false);
|
if (path.includes(sep)) return await access(path).then(() => true).catch(() => false);
|
||||||
|
|
||||||
// just binary name, so check path
|
// just binary name, so check path
|
||||||
return (await getBinariesInPath()).some(x => x.includes(path));
|
return (await getBinariesInPath()).includes(path);
|
||||||
};
|
};
|
||||||
|
|
||||||
const findBrowserPath = async (forceBrowser) => {
|
const findBrowserPath = async (forceBrowser) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user