From 20a0a4b6705f9348d41dbb83fda606e07e58438d Mon Sep 17 00:00:00 2001 From: French Ben Date: Tue, 5 Apr 2016 17:14:34 -0700 Subject: [PATCH] Updated path to work properly on linux Signed-off-by: French Ben --- src/utils/DockerMachineUtil.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/DockerMachineUtil.js b/src/utils/DockerMachineUtil.js index 8cd949f88..634c8059a 100644 --- a/src/utils/DockerMachineUtil.js +++ b/src/utils/DockerMachineUtil.js @@ -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;