Commit f9db6b32 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

website: fix download parsing

parent ce995d77
......@@ -17,7 +17,8 @@ if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"]
response = http.request(req)
response.body.split("\n").each do |line|
next if line !~ /\/mitchellh\/packer\/(#{ENV["PACKER_VERSION"]}.+?)\?/
next if line !~ /\/mitchellh\/packer\/(#{Regexp.quote(ENV["PACKER_VERSION"])}.+?)'/
p $1.to_s
filename = $1.to_s
os = filename.split("_")[1]
next if os == "SHA256SUMS"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment