summaryrefslogtreecommitdiff
path: root/bin/with_rubygems
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 /bin/with_rubygems
parentabc29c377f24554f7d3101cd5fd081cb1ec33a11 (diff)
downloadbundler-a4afc4413a021364a1281e506eb132b8235a47a6.tar.gz
Remove standard output from `with_rubygems`remove_output_from_with_rubygems
Diffstat (limited to 'bin/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