зеркало из https://github.com/docker/kitematic.git
Merge pull request #1603 from docker/1591-update-terminal
Updated path to work properly on linux - Fixes #1591
This commit is contained in:
Коммит
be6d9864ea
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче