Fix ppp
This commit is contained in:
parent
4ebd60ecf9
commit
3abc3409d6
@ -152,7 +152,7 @@ func download(packages map[string]packageInfo, url string, output string) {
|
|||||||
rdr := io.Reader(resp.Body)
|
rdr := io.Reader(resp.Body)
|
||||||
opt := strings.Split(pack.FilePath, "/")[len(strings.Split(pack.FilePath, "/"))-1]
|
opt := strings.Split(pack.FilePath, "/")[len(strings.Split(pack.FilePath, "/"))-1]
|
||||||
if opt == "" {
|
if opt == "" {
|
||||||
opt = pack.Name + ".deb"
|
opt = strings.TrimSpace(pack.Name) + ".deb"
|
||||||
}
|
}
|
||||||
path := output + opt
|
path := output + opt
|
||||||
file, err := os.Create(path)
|
file, err := os.Create(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user