forked from mirror/MCSM-Daemon
fix: 修复部分情况下额外路径映射文件夹错误的bug
This commit is contained in:
parent
bdb7d27925
commit
b49d46e4e9
@ -152,9 +152,9 @@ export default class DockerStartCommand extends InstanceCommand {
|
||||
let [hostPath, containerPath] = element;
|
||||
|
||||
if (path.isAbsolute(containerPath)) {
|
||||
containerPath = path.normalize(hostPath);
|
||||
containerPath = path.normalize(containerPath);
|
||||
} else {
|
||||
containerPath = path.normalize(path.join("/workspace/", hostPath));
|
||||
containerPath = path.normalize(path.join("/workspace/", containerPath));
|
||||
}
|
||||
if (path.isAbsolute(hostPath)) {
|
||||
hostPath = path.normalize(hostPath);
|
||||
|
Loading…
Reference in New Issue
Block a user