Add mised filepath.Join() calls

This commit is contained in:
morganamilo 2018-05-03 01:47:24 +01:00
parent dc10c4b6dd
commit ee75de0135
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -96,7 +96,7 @@ func downloadAndUnpack(url string, path string, trim bool) (err error) {
if trim {
err = exec.Command("/bin/sh", "-c",
config.TarBin+" --strip-components 2 --include='*/"+fileName[:len(fileName)-7]+"/trunk/' -xf "+tarLocation+" -C "+path).Run()
os.Rename(path+"trunk", path+fileName[:len(fileName)-7]) // kurwa
os.Rename(filepath.Join(path, "trunk"), filepath.Join(path,fileName[:len(fileName)-7]))
} else {
err = exec.Command(config.TarBin, "-xf", tarLocation, "-C", path).Run()
}