mirror of
https://github.com/Jguer/yay.git
synced 2025-12-06 00:02:43 -05:00
Lint
This commit is contained in:
parent
aaf89c0c1c
commit
38818757c8
@ -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(filepath.Join(path, "trunk"), filepath.Join(path,fileName[:len(fileName)-7]))
|
||||
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…
x
Reference in New Issue
Block a user