diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-14 18:20:46 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-17 11:43:41 +0200 |
commit | 6e579ff47ed78e377f5d8e9c2d82e26b4cd9499e (patch) | |
tree | 5106d1cfdb7843cc6ba9806cb7ecbbd6b0346dad /bin | |
parent | b5bdcccbbb1be0ab5daddc82d5c3fca51e73ffea (diff) | |
download | bundler-6e579ff47ed78e377f5d8e9c2d82e26b4cd9499e.tar.gz |
Consistenly pass strings to `run` helper
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/with_rubygems | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/with_rubygems b/bin/with_rubygems index 07c7ac1de9..f835316d67 100755 --- a/bin/with_rubygems +++ b/bin/with_rubygems @@ -3,9 +3,9 @@ require "pathname" -def run(*cmd) - return if system(*cmd, :out => IO::NULL) - raise "Running `#{cmd.join(" ")}` failed" +def run(cmd) + return if system(cmd, :out => IO::NULL) + raise "Running `#{cmd}` failed" end version = ENV.delete("RGV") @@ -14,12 +14,12 @@ unless rubygems_path.directory? rubygems_path = Pathname.new("tmp/rubygems").expand_path unless rubygems_path.directory? rubygems_path.parent.mkpath - run("git", "clone", "https://github.com/rubygems/rubygems.git", rubygems_path.to_s) + run("git clone https://github.com/rubygems/rubygems.git #{rubygems_path}") end Dir.chdir(rubygems_path) do run("git remote update") version = "v#{version}" if version =~ /\A\d/ - run("git", "checkout", version, "--quiet") + run("git checkout #{version} --quiet") end end |