diff --git a/ppp b/ppp index aec245e..f9ee9e1 100755 Binary files a/ppp and b/ppp differ diff --git a/src/main.go b/src/main.go index a5212e3..5ee9ba2 100644 --- a/src/main.go +++ b/src/main.go @@ -150,7 +150,11 @@ func download(packages map[string]packageInfo, url string, output string) { } defer resp.Body.Close() rdr := io.Reader(resp.Body) - path := output + pack.Name + opt := strings.Split(pack.FilePath, "/")[len(strings.Split(pack.FilePath, "/"))-1] + if opt == "" { + opt = pack.Name + ".deb" + } + path := output + opt file, err := os.Create(path) if err != nil { fmt.Printf("Failed to create file %s: %v \n", path, err)