summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-31 19:00:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-31 19:00:17 +0900
commitdefdfa020a5e30da132280f2ec16eb87d62cfc73 (patch)
tree2b1f323d3d0c1751ebc55c31939dc9e9fc13a239 /tool/sync_default_gems.rb
parent3695d94b25f3e3e0d7a629bf1708ef421a51dd47 (diff)
Exit with the syncing status [ci skip]
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 82d372d855..41d6d1dd51 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -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