mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-26 16:36:26 -06:00
website: work with new file format
This commit is contained in:
parent
c5bf448d8c
commit
afc942358d
@ -32,7 +32,7 @@ done
|
||||
|
||||
# Make the checksums
|
||||
pushd ./pkg/dist
|
||||
shasum -a256 * > ./${VERSION}_SHA256SUMS
|
||||
shasum -a256 * > ./terraform_${VERSION}_SHA256SUMS
|
||||
popd
|
||||
|
||||
# Upload
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user