summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 3b39f45ed0..1149424881 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -9,6 +9,10 @@ class Downloader
class RubyGems < self
def self.download(name, *rest)
+ if File.exist?(name)
+ $stdout.puts "#{name} already exists"
+ return
+ end
super("https://rubygems.org/downloads/#{name}", name, *rest)
end
end