diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-27 13:21:35 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-28 17:40:54 +0100 |
commit | fd3cbc6fd487185acf8afdc0f043ac17c95ad9f1 (patch) | |
tree | 8b3f1c0aa38f3b4228e6fa0695ad94d07a01701a | |
parent | 1c9a963066ae687782c375e04932fde5d8b87051 (diff) | |
download | bundler-fd3cbc6fd487185acf8afdc0f043ac17c95ad9f1.tar.gz |
Expand path from current folder
I don't plan to support running this binstub from outside of the root
folder.
-rwxr-xr-x | bin/with_rubygems | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/with_rubygems b/bin/with_rubygems index f12422f6b7..614e2beb42 100755 --- a/bin/with_rubygems +++ b/bin/with_rubygems @@ -9,7 +9,7 @@ def run(*cmd) end version = ENV.delete("RGV") -rubygems_path = Pathname.new(__FILE__).join("../../tmp/rubygems").expand_path +rubygems_path = Pathname.new("tmp/rubygems").expand_path unless rubygems_path.directory? rubygems_path.parent.mkpath unless rubygems_path.directory? run("git", "clone", "https://github.com/rubygems/rubygems.git", rubygems_path.to_s) |