1
0
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:
Bryan Roe
2019-06-24 15:20:21 -07:00
parent 2c6f9780ee
commit 74530d5a5f
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
}
}