Fix whale button on mac

This commit is contained in:
Jeffrey Morgan 2015-06-17 15:44:53 -07:00
parent 642320a188
commit c72c1a7cf6
1 changed files with 2 additions and 3 deletions

View File

@ -166,10 +166,9 @@ var DockerMachine = {
}); });
}); });
} else { } else {
cmd = cmd || '$SHELL'; cmd = cmd || process.env.SHELL;
this.info().then(machine => { this.info().then(machine => {
var cmd = [resources.terminal(), `DOCKER_HOST=${machine.url} DOCKER_CERT_PATH=${path.join(util.home(), '.docker/machine/machines/' + machine.name)} DOCKER_TLS_VERIFY=1 ${cmd}`]; util.exec([resources.terminal(), `DOCKER_HOST=${machine.url} DOCKER_CERT_PATH=${path.join(util.home(), '.docker/machine/machines/' + machine.name)} DOCKER_TLS_VERIFY=1 ${cmd}`]).then(() => {});
util.exec(cmd).then(() => {});
}); });
} }
}, },