website: fix downloads

This commit is contained in:
Mitchell Hashimoto 2014-08-11 13:48:05 -07:00
parent fe2a306341
commit acc9cf0003
1 changed files with 2 additions and 2 deletions

View File

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