summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-11 13:16:15 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-12 18:28:37 +0200
commita4afc4413a021364a1281e506eb132b8235a47a6 (patch)
tree08e15a13076042efe4d4c850a825774dd7e93a82
parentabc29c377f24554f7d3101cd5fd081cb1ec33a11 (diff)
downloadbundler-remove_output_from_with_rubygems.tar.gz
Remove standard output from `with_rubygems`remove_output_from_with_rubygems
-rwxr-xr-xbin/with_rubygems4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/with_rubygems b/bin/with_rubygems
index 72edc1c928..96299669be 100755
--- a/bin/with_rubygems
+++ b/bin/with_rubygems
@@ -4,7 +4,7 @@
require "pathname"
def run(*cmd)
- return if system(*cmd)
+ return if system(*cmd, :out => IO::NULL)
raise "Running `#{cmd.join(" ")}` failed"
end
@@ -20,8 +20,6 @@ unless rubygems_path.directory?
run("git remote update")
version = "v#{version}" if version =~ /\A\d/
run("git", "checkout", version, "--quiet")
- hash = `git rev-parse HEAD`.chomp
- puts "Checked out rubygems '#{version}' at #{hash}"
end
end