Commit ca2f1309 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Allow bin/install to signal failure on exit

parent fa617316
...@@ -20,7 +20,13 @@ commands = [ ...@@ -20,7 +20,13 @@ commands = [
] ]
commands.each do |cmd| commands.each do |cmd|
puts "#{cmd}: #{system(cmd)}" print "#{cmd}: "
if system(cmd)
puts 'OK'
else
puts 'Failed'
abort "#{$PROGRAM_NAME} failed"
end
end end
exit exit
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment