diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index a566b2b57a..6319fdf4f9 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -297,9 +297,10 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy ignore_interrupts do temporary_path.rename(cached_location) symlink_location.dirname.mkpath - FileUtils.ln_s cached_location.relative_path_from(symlink_location.dirname), symlink_location, force: true end end + + FileUtils.ln_s cached_location.relative_path_from(symlink_location.dirname), symlink_location, force: true rescue CurlDownloadStrategyError raise if urls.empty? puts "Trying a mirror..."