Skip to content
Snippets Groups Projects
Commit cb28a0f4 authored by Max Howell's avatar Max Howell
Browse files

Error out if a git command fails during update

parent 7ebd0121
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,11 @@ class RefreshBrew
def execute(cmd)
out = `#{cmd}`
if ARGV.verbose?
ohai cmd
unless $?.success?
puts out
raise "Failed while executing #{cmd}"
end
ohai(cmd, out) if ARGV.verbose?
out
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment