Skip to content

Commit c7525a2

Browse files
authored
Fix bug where updatelabel would be assigned the label of the last listed update, resulting in softwareupdate possibly downloading the wrong update (#497)
1 parent f30e7d2 commit c7525a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Nudge/Utilities/SoftwareUpdate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class SoftwareUpdate {
106106
let softwareupdateList = self.List()
107107
var updateLabel = ""
108108
for update in softwareupdateList.components(separatedBy: "\n") {
109-
if update.contains("Label:") {
109+
if update.contains("Label:") && update.contains(requiredMinimumOSVersion) {
110110
updateLabel = update.components(separatedBy: ": ")[1]
111111
}
112112
}

0 commit comments

Comments
 (0)