Skip to content

Commit

Permalink
Look for xhyve in /usr/local/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
jrichter1 authored and dgolovin committed Apr 19, 2018
1 parent b1400a7 commit f7e90e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/services/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ class Platform {
static isXhyveAvailable() {
return Platform.identify({
darwin: ()=> {
return pify(child_process.exec)('which docker-machine-driver-xhyve').then((stdout) => {
let newPath = `/usr/local/bin${path.delimiter}${process.env.PATH}`;

return pify(child_process.exec)('which docker-machine-driver-xhyve', {env: {PATH: newPath}}).then((stdout) => {
return Promise.resolve(stdout.trim().length > 0);
}).catch(() => {
return Promise.resolve(false);
Expand Down

0 comments on commit f7e90e4

Please sign in to comment.