revert dir rename

This commit is contained in:
Shawn Smith
2021-11-16 14:12:24 +09:00
parent 083d779f86
commit 9af34671bd
2 changed files with 8 additions and 2 deletions

View File

@@ -85,5 +85,10 @@ func ProxyDownload(path string) (string, error) {
return "", err
}
return mv.Version, os.Rename(filepath.Join(reposDir, lowerPath+"@"+mv.Version), filepath.Join(reposDir, path))
err = os.Rename(filepath.Join(reposDir, path+"@"+mv.Version), filepath.Join(reposDir, path))
if err != nil {
return "", err
}
return mv.Version, nil
}