website: fix downloads
This commit is contained in:
parent
fe2a306341
commit
acc9cf0003
|
@ -33,8 +33,8 @@ end
|
|||
module DownloadHelpers
|
||||
def download_arch(file)
|
||||
parts = file.split("_")
|
||||
return "" if parts.length != 4
|
||||
parts[3].split(".")[0]
|
||||
return "" if parts.length != 3
|
||||
parts[2].split(".")[0]
|
||||
end
|
||||
|
||||
def download_os_human(os)
|
||||
|
|
Loading…
Reference in New Issue