зеркало из https://github.com/docker/kitematic.git
Merge pull request #1170 from kitematic/remove-escape
Don't escape volume paths
This commit is contained in:
Коммит
e533ed35d2
|
@ -26,7 +26,8 @@ var ContainerHomeFolder = React.createClass({
|
|||
}, (index) => {
|
||||
if (index === 0) {
|
||||
var mounts = _.clone(this.props.container.Mounts);
|
||||
var newSource = util.escapePath(path.join(util.home(), util.documents(), 'Kitematic', this.props.container.Name, destination));
|
||||
var newSource = path.join(util.home(), util.documents(), 'Kitematic', this.props.container.Name, destination);
|
||||
|
||||
var binds = mounts.map(function (m) {
|
||||
let source = m.Source;
|
||||
if (m.Destination === destination) {
|
||||
|
|
|
@ -28,7 +28,7 @@ var ContainerSettingsVolumes = React.createClass({
|
|||
metrics.track('Choose Directory for Volume');
|
||||
|
||||
if(util.isWindows()) {
|
||||
directory = util.escapePath(util.windowsToLinuxPath(directory));
|
||||
directory = util.windowsToLinuxPath(directory);
|
||||
}
|
||||
|
||||
var mounts = _.clone(this.props.container.Mounts);
|
||||
|
|
Загрузка…
Ссылка в новой задаче