lib/nanoc3/extra/deployers/rsync.rb in nanoc3-3.1.3 vs lib/nanoc3/extra/deployers/rsync.rb in nanoc3-3.1.4
- old
+ new
@@ -104,9 +104,10 @@
end
# Runs the given shell command. This is a simple wrapper around Kernel#system.
def run_shell_cmd(args)
system(*args)
+ raise "command exited with a nonzero status code #{$?.exitstatus} (command: #{args.join(' ')})" if !$?.success?
end
end
end