mirror of
https://github.com/Jguer/yay
synced 2024-09-06 16:43:03 +00:00
Merge pull request #380 from Morganamilo/fix#379
Add mised filepath.Join() calls
This commit is contained in:
commit
5307e97d66
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue