filter out broken package

This commit is contained in:
ferrreo 2023-09-05 19:35:51 +01:00
parent 293f8073eb
commit 6d96c771b3
2 changed files with 2 additions and 2 deletions

BIN
ppp

Binary file not shown.

View File

@ -155,11 +155,11 @@ func repoAdd(path string, args string) {
totalCount := len(files)
filePaths := ""
for _, file := range files {
if count > 0 && totalCount > 0 {
if count > 0 && totalCount > 0 && strings.TrimSpace(file) != "" {
count--
totalCount--
filePaths = filePaths + " " + path + file
} else {
} else if strings.TrimSpace(filePaths) != "" {
count = 500
cmd := exec.Command("/bin/bash", "-c", "reprepro "+args+" "+filePaths)
out, err := cmd.CombinedOutput()