mirror of https://github.com/docker/docs.git
Fix bug where terminal button fails if spaces in Kitematic.app path
This commit is contained in:
parent
9a92f1cf35
commit
88cf79569a
|
@ -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) {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue