mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Fix bug where terminal button fails if spaces in Kitematic.app path
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user