website: fix issues with URL
This commit is contained in:
parent
9dbab71121
commit
cc1cf6c301
|
@ -20,6 +20,7 @@ if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"]
|
||||||
next if line !~ /\/mitchellh\/packer\/(#{ENV["PACKER_VERSION"]}.+?)\?/
|
next if line !~ /\/mitchellh\/packer\/(#{ENV["PACKER_VERSION"]}.+?)\?/
|
||||||
filename = $1.to_s
|
filename = $1.to_s
|
||||||
os = filename.split("_")[1]
|
os = filename.split("_")[1]
|
||||||
|
next if os == "SHA256SUMS"
|
||||||
|
|
||||||
$packer_files[os] ||= []
|
$packer_files[os] ||= []
|
||||||
$packer_files[os] << filename
|
$packer_files[os] << filename
|
||||||
|
@ -59,7 +60,9 @@ end
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
helpers do
|
helpers do
|
||||||
def download_arch(file)
|
def download_arch(file)
|
||||||
file.split("_")[2].split(".")[0]
|
parts = file.split("_")
|
||||||
|
return "" if parts.length != 3
|
||||||
|
parts[2].split(".")[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
def download_os_human(os)
|
def download_os_human(os)
|
||||||
|
|
Loading…
Reference in New Issue