mirror of
https://github.com/Jguer/yay.git
synced 2025-11-27 00:06:25 -05:00
Add mised filepath.Join() calls
This commit is contained in:
parent
dc10c4b6dd
commit
ee75de0135
@ -96,7 +96,7 @@ func downloadAndUnpack(url string, path string, trim bool) (err error) {
|
|||||||
if trim {
|
if trim {
|
||||||
err = exec.Command("/bin/sh", "-c",
|
err = exec.Command("/bin/sh", "-c",
|
||||||
config.TarBin+" --strip-components 2 --include='*/"+fileName[:len(fileName)-7]+"/trunk/' -xf "+tarLocation+" -C "+path).Run()
|
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 {
|
} else {
|
||||||
err = exec.Command(config.TarBin, "-xf", tarLocation, "-C", path).Run()
|
err = exec.Command(config.TarBin, "-xf", tarLocation, "-C", path).Run()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user