mirror of https://github.com/docker/docs.git
Merge pull request #16036 from Microsoft/10662-httpdirectory
Windows: Fix HTTP download directory
This commit is contained in:
commit
8258996cf2
|
|
@ -360,7 +360,7 @@ func calcCopyInfo(b *builder, cmdName string, cInfos *[]*copyInfo, origPath stri
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
path := u.Path
|
path := filepath.FromSlash(u.Path) // Ensure in platform semantics
|
||||||
if strings.HasSuffix(path, string(os.PathSeparator)) {
|
if strings.HasSuffix(path, string(os.PathSeparator)) {
|
||||||
path = path[:len(path)-1]
|
path = path[:len(path)-1]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue