Skip to content

Commit

Permalink
Merge pull request #71 from crazydog115/master
Browse files Browse the repository at this point in the history
Retry the download 5 times
  • Loading branch information
colszowka committed Feb 12, 2016
2 parents 57e8b6e + c4b1e2b commit 38a722d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phantomjs/platform.rb
Expand Up @@ -51,7 +51,7 @@ def install!
FileUtils.mkdir_p temp_dir

Dir.chdir temp_dir do
unless system "curl -L -O #{package_url}" or system "wget #{package_url}"
unless system "curl -L --retry 5 -O #{package_url}" or system "wget -t 5 #{package_url}"
raise "\n\nFailed to load phantomjs! :(\nYou need to have cURL or wget installed on your system.\nIf you have, the source of phantomjs might be unavailable: #{package_url}\n\n"
end

Expand Down

0 comments on commit 38a722d

Please sign in to comment.