summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2024-04-23 20:14:18 +0900
committerNARUSE, Yui <naruse@airemix.jp>2024-04-23 20:14:18 +0900
commit0b4bf05985d29d3edcb65629663fb6063261b343 (patch)
tree661decd6eb192d7eb6d3998cc4c133478a85701a /tool
parent989a2355808a63fc45367785c82ffd46d18c900a (diff)
exit 1 if failed
Diffstat (limited to 'tool')
-rwxr-xr-xtool/merger.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/merger.rb b/tool/merger.rb
index d181a77f84..46b0f13fc0 100755
--- a/tool/merger.rb
+++ b/tool/merger.rb
@@ -57,11 +57,11 @@ class << Merger
yield if block_given?
STDERR.puts "\e[1;33m#{str} ([y]es|[a]bort|[r]etry#{'|[e]dit' if editfile})\e[0m"
case STDIN.gets
- when /\Aa/i then exit
+ when /\Aa/i then exit 1
when /\Ar/i then redo
when /\Ay/i then break
when /\Ae/i then system(ENV['EDITOR'], editfile)
- else exit
+ else exit 1
end
end
end