mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Avoid duplicate firmware download links
This commit is contained in:
parent
b215fb7623
commit
63d9b98b02
@ -1044,7 +1044,9 @@ proc ::rmupdate::get_available_firmware_downloads {} {
|
||||
if {[string first "https://" $href] == -1} {
|
||||
set href "https://github.com${href}"
|
||||
}
|
||||
lappend download_urls "${href}.zip"
|
||||
if {[lsearch -exact $download_urls "${href}.zip"] == -1} {
|
||||
lappend download_urls "${href}.zip"
|
||||
}
|
||||
}
|
||||
}
|
||||
return $download_urls
|
||||
|
Loading…
x
Reference in New Issue
Block a user