Skip to content

Commit

Permalink
Merge pull request #10 from aboutsource/feature/check_sha256sum_file
Browse files Browse the repository at this point in the history
check sha256sum file instead of shasum
  • Loading branch information
markus-as authored Aug 22, 2024
2 parents 38b134b + 8b35ee3 commit 61375f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/check-minio-update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run

def latest_version
@latest_version ||= begin
uri = URI.parse("#{config[:checkurl]}/#{config[:platform]}/minio.shasum")
uri = URI.parse("#{config[:checkurl]}/#{config[:platform]}/minio.sha256sum") # rubocop:disable Layout/LineLength
response = Net::HTTP.get_response(uri)

unless response.is_a?(Net::HTTPSuccess)
Expand Down
2 changes: 1 addition & 1 deletion spec/check_minio_update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
let(:checksum_request) do
stub_request(
:get,
'https://dl.min.io/server/minio/release/linux-amd64/minio.shasum'
'https://dl.min.io/server/minio/release/linux-amd64/minio.sha256sum'
).to_return(response)
end

Expand Down

0 comments on commit 61375f4

Please sign in to comment.