Permalink
Browse files

follow redirection by adding option -L

  • Loading branch information...
1 parent 5f40f16 commit 3edf2c2248e058491946dd0f7c87c32db6e96a3a @doitian doitian committed Dec 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/vendorer.rb
View
@@ -14,7 +14,7 @@ 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 -L '#{url}' -o #{path}"
raise "Downloaded empty file" unless File.exist?(path)
yield path if block_given?
end

0 comments on commit 3edf2c2

Please sign in to comment.