lib/command/executor/base.rb in cocoapods-binary-cache-0.1.8 vs lib/command/executor/base.rb in cocoapods-binary-cache-0.1.9

- old
+ new

@@ -15,10 +15,11 @@ comps = ["git"] comps << "-C" << @config.cache_path unless options[:cache_repo] == false comps << cmd comps << "&> /dev/null" if options[:ignore_output] comps << "|| true" if options[:can_fail] - `#{comps.join(" ")}` + cmd = comps.join(" ") + raise "Fail to run command '#{cmd}'" unless system(cmd) end def git_clone(cmd, options = {}) git("clone #{cmd}", options.merge(:cache_repo => false)) end