Merge pull request #140 from kitematic/jmorgan_fix_terminal_spaces

Fix bug where terminal button fails if spaces in Kitematic.app path
This commit is contained in:
Jeffrey Morgan 2014-12-14 22:42:16 -08:00
commit 4754fc82b4
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ Template.dashboardSingleApp.events({
}
},
'click .btn-terminal': function () {
var cmd = [Boot2Docker.command(), 'ssh', '-t', 'sudo docker exec -i -t ' + this.docker.Id + ' bash'];
var cmd = [Boot2Docker.command().replace(/ /g, '\\\\ '), 'ssh', '-t', 'sudo', 'docker', 'exec', '-i', '-t', this.docker.Id, 'bash'];
Util.openTerminal(cmd);
},
'click .btn-start': function (e) {

View File

@ -28,7 +28,7 @@ Template.dashboardAppsLayout.events({
AppUtil.logs(this._id);
},
'click .btn-terminal': function () {
var cmd = [Boot2Docker.command(), 'ssh', '-t', 'sudo docker exec -i -t ' + this.docker.Id + ' bash'];
var cmd = [Boot2Docker.command().replace(/ /g, '\\\\ '), 'ssh', '-t', 'sudo', 'docker', 'exec', '-i', '-t', this.docker.Id, 'bash'];
Util.openTerminal(cmd);
},
'click .btn-restart': function () {