lib/kuzushi.rb in kuzushi-0.0.54 vs lib/kuzushi.rb in kuzushi-0.0.55
- old
+ new
@@ -389,10 +389,11 @@
end
end
def shell(cmd)
log "# #{cmd}"
- Kernel.system cmd ## FIXME - need to handle/report exceptions here
+ Kernel.system cmd
+ raise "Command #{cmd} failed with exit code #{$?.to_i}" unless $?.success?
end
def init?
@init ||= false
end