mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-28 14:13:37 +00:00
Added workaround for findPath from service, for freebsd
This commit is contained in:
@@ -33,6 +33,7 @@ if (process.platform == 'linux' || process.platform == 'darwin' || process.platf
|
||||
}
|
||||
child.waitExit();
|
||||
child.stdout.str = child.stdout.str.trim();
|
||||
if (process.platform == 'freebsd' && child.stdout.str == '' && require('fs').existsSync('/usr/local/bin/' + app)) { return ('/usr/local/bin/' + app); }
|
||||
return (child.stdout.str == '' ? null : child.stdout.str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user