Skip to content
Snippets Groups Projects
Commit eb0be2ba authored by samueljohn's avatar samueljohn Committed by Adam Vandenberg
Browse files

download_strategy: Use MacOS.locate to find svn


- So that Xcode-only systems don't fail to find svn.

Closes Homebrew/homebrew#14080.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent dbe460ef
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,7 @@ class SubversionDownloadStrategy < AbstractDownloadStrategy
def svn
return ENV['HOMEBREW_SVN'] if ENV['HOMEBREW_SVN']
return "#{HOMEBREW_PREFIX}/bin/svn" if File.exist? "#{HOMEBREW_PREFIX}/bin/svn"
return '/usr/bin/svn'
return MacOS.locate 'svn'
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment