Fix URL and ignore non .zip files
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Steven Polley 2023-06-03 23:29:40 -06:00
parent a7c8db338c
commit 62722871e7
1 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,8 @@ func getLineageOSROMs(romDirectory string) ([]LineageOSROM, error) {
splitName := strings.Split(d.Name(), "-")
if len(splitName) != 5 {
log.Printf("ignoring zip file '%d', name is not formatted correctly ")
log.Printf("ignoring zip file '%s', name is not formatted correctly", d.Name())
return nil
}
lineageOSROM := LineageOSROM{
@ -77,7 +78,7 @@ func getLineageOSROMs(romDirectory string) ([]LineageOSROM, error) {
ID: "TBD",
Romtype: "nightly",
Size: int(fInfo.Size()),
URL: fmt.Sprintf("https://lineageos-updater.deadbeef.codes/public/%s", d.Name()),
URL: fmt.Sprintf("https://lineageos-ota.deadbeef.codes/public/%s", d.Name()),
Version: "TBD",
}