Skip to content

Commit f7e90e4

Browse files
jrichter1dgolovin
authored andcommitted
Look for xhyve in /usr/local/bin
1 parent b1400a7 commit f7e90e4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

browser/services/platform.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ class Platform {
144144
static isXhyveAvailable() {
145145
return Platform.identify({
146146
darwin: ()=> {
147-
return pify(child_process.exec)('which docker-machine-driver-xhyve').then((stdout) => {
147+
let newPath = `/usr/local/bin${path.delimiter}${process.env.PATH}`;
148+
149+
return pify(child_process.exec)('which docker-machine-driver-xhyve', {env: {PATH: newPath}}).then((stdout) => {
148150
return Promise.resolve(stdout.trim().length > 0);
149151
}).catch(() => {
150152
return Promise.resolve(false);

0 commit comments

Comments
 (0)