summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 13:57:09 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-17 11:41:45 +0200
commit696c3768d72a5479f131d4f9cee3b0084d3f8b45 (patch)
tree0d6b654b79f42b10c99aef9d2bc12c9fe3435f58
parentebe0b853d8f2ac93f9c69768ee6af2c18fbc9d87 (diff)
downloadbundler-696c3768d72a5479f131d4f9cee3b0084d3f8b45.tar.gz
Remove duplicated condition
We're checking the same thing in the previous line
-rwxr-xr-xbin/with_rubygems2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/with_rubygems b/bin/with_rubygems
index 96299669be..07c7ac1de9 100755
--- a/bin/with_rubygems
+++ b/bin/with_rubygems
@@ -13,7 +13,7 @@ rubygems_path = Pathname.new(version).expand_path
unless rubygems_path.directory?
rubygems_path = Pathname.new("tmp/rubygems").expand_path
unless rubygems_path.directory?
- rubygems_path.parent.mkpath unless rubygems_path.directory?
+ rubygems_path.parent.mkpath
run("git", "clone", "https://github.com/rubygems/rubygems.git", rubygems_path.to_s)
end
Dir.chdir(rubygems_path) do