utils: Exit early on build failure

pull/4/head
Andre Richter 6 years ago
parent 99f4dc24b3
commit 8a3f6f5f15
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -8,6 +8,9 @@ crates.each do |x|
x = File.dirname(x)
puts "\n\n" + x.to_s + "\n\n"
Dir.chdir(x) do
`make`
if system('make') != 0
puts "\n\nBuild failed!"
exit(1) # Exit with error code
end
end
end

Loading…
Cancel
Save