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…
Reference in New Issue