1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Exit with the syncing status [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-08-31 19:00:04 +09:00
parent 3695d94b25
commit defdfa020a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -468,7 +468,9 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
unless failed_commits.empty?
puts "---- failed commits ----"
puts failed_commits
return false
end
return true
end
def sync_lib(repo, upstream = nil)
@ -577,9 +579,9 @@ else
end
gem = ARGV.shift
if ARGV[0]
sync_default_gems_with_commits(gem, ARGV, edit: edit)
exit sync_default_gems_with_commits(gem, ARGV, edit: edit)
elsif auto
sync_default_gems_with_commits(gem, true, edit: edit)
exit sync_default_gems_with_commits(gem, true, edit: edit)
else
sync_default_gems(gem)
end