paths: fix searching in PATH sometimes being misleading

This commit is contained in:
Oj 2022-12-15 13:22:30 +00:00
parent 8b0ed9a798
commit 675d0bb5af

View File

@ -46,7 +46,7 @@ const exists = async path => {
if (path.includes(sep)) return await access(path).then(() => true).catch(() => false);
// just binary name, so check path
return (await getBinariesInPath()).some(x => x.includes(path));
return (await getBinariesInPath()).includes(path);
};
const findBrowserPath = async (forceBrowser) => {