Handle case of gem being installed before Chromebrew gem package. (#10541)

* Handle case of gem being installed before Chromebrew gem package.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add newline after success upload output to prevent overwrite of message on screen.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-09-29 15:28:35 -04:00
committed by GitHub
parent ce2f3dec20
commit 0b87138a19
3 changed files with 6 additions and 3 deletions

View File

@@ -1526,7 +1526,7 @@ def upload(pkg_name = nil, pkg_version = nil, gitlab_token = nil, gitlab_token_u
puts "curl -Ls #{new_url} | sha256sum" if CREW_VERBOSE
upstream_sha256 = `curl -Ls #{new_url} | sha256sum`.chomp.split.first
if upstream_sha256 == new_sha256
puts output.lightgreen
puts "#{output}\n".lightgreen
else
if CREW_VERBOSE
puts "expected sha256 hash=#{new_sha256}"