# File lib/bundler/gem_helper.rb, line 165 def sh(cmd, &block) out, code = sh_with_code(cmd, &block) if code == 0 out else raise(out.empty? ? "Running `#{cmd}` failed. Run this command directly for more detailed output." : out) end end