Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1603 from docker/1591-update-terminal
Browse files Browse the repository at this point in the history
Updated path to work properly on linux - Fixes #1591
  • Loading branch information
FrenchBen committed Apr 6, 2016
2 parents 5e03566 + 20a0a4b commit be6d986
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/DockerMachineUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ var DockerMachine = {
});
} else if (util.isNative()) {
cmd = cmd || process.env.SHELL;
var terminal = util.isLinux() ? util.linuxTerminal() : path.join(process.env.RESOURCES_PATH, 'terminal');
var terminal = util.isLinux() ? util.linuxTerminal() : [path.join(process.env.RESOURCES_PATH, 'terminal')];
terminal.push(cmd);
if (terminal) {
util.execFile([terminal, cmd]).then(() => {});
util.execFile(terminal).then(() => {});
}
} else {
cmd = cmd || process.env.SHELL;
Expand Down

0 comments on commit be6d986

Please sign in to comment.