Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
follow redirection by adding option -L
  • Loading branch information
doitian committed Dec 31, 2011
1 parent 5f40f16 commit 3edf2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vendorer.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3edf2c2

Please sign in to comment.