lib/vendorer.rb in vendorer-0.1.6 vs lib/vendorer.rb in vendorer-0.1.7
- old
+ new
@@ -12,10 +12,10 @@
def file(path, url)
path = complete_path(path)
update_or_not path do
run "mkdir -p #{File.dirname(path)}"
- run "curl '#{url}' -o #{path}"
+ run "curl '#{url}' -L -o #{path}"
raise "Downloaded empty file" unless File.exist?(path)
yield path if block_given?
end
end