fix: 修复部分情况下额外路径映射文件夹错误的bug

This commit is contained in:
WarmthDawn 2022-02-12 17:51:18 +08:00
parent bdb7d27925
commit b49d46e4e9

View File

@ -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);