This commit is contained in:
ferrreo 2023-09-06 20:29:02 +01:00
parent 4ebd60ecf9
commit 3abc3409d6
2 changed files with 1 additions and 1 deletions

BIN
ppp

Binary file not shown.

View File

@ -152,7 +152,7 @@ func download(packages map[string]packageInfo, url string, output string) {
rdr := io.Reader(resp.Body)
opt := strings.Split(pack.FilePath, "/")[len(strings.Split(pack.FilePath, "/"))-1]
if opt == "" {
opt = pack.Name + ".deb"
opt = strings.TrimSpace(pack.Name) + ".deb"
}
path := output + opt
file, err := os.Create(path)