website: work with new file format

This commit is contained in:
Mitchell Hashimoto 2014-08-05 14:32:27 -07:00
parent c5bf448d8c
commit afc942358d
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ done
# Make the checksums
pushd ./pkg/dist
shasum -a256 * > ./${VERSION}_SHA256SUMS
shasum -a256 * > ./terraform_${VERSION}_SHA256SUMS
popd
# Upload

View File

@ -11,9 +11,9 @@ if ENV["TERRAFORM_VERSION"]
response = http.request(req)
response.body.split("\n").each do |line|
next if line !~ /\/mitchellh\/terraform\/(#{Regexp.quote(ENV["TERRAFORM_VERSION"])}.+?)'/
next if line !~ /\/mitchellh\/terraform\/terraform_(#{Regexp.quote(ENV["TERRAFORM_VERSION"])}.+?)'/
filename = $1.to_s
os = filename.split("_")[1]
os = filename.split("_")[2]
next if os == "SHA256SUMS"
next if os == "web"