mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-08 19:44:06 +00:00
Added workaround for findPath from service, for freebsd
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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