Avoid duplicate firmware download links

This commit is contained in:
Jan Schneider 2018-08-26 19:23:59 +02:00
parent b215fb7623
commit 63d9b98b02
1 changed files with 3 additions and 1 deletions

View File

@ -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