mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
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:
committed by
GitHub
parent
ce2f3dec20
commit
0b87138a19
2
bin/crew
2
bin/crew
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user