1
0
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:
Jan Schneider 2018-08-26 19:23:59 +02:00
parent b215fb7623
commit 63d9b98b02

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