Skip to content
Snippets Groups Projects
Commit f526bd50 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

check_PATH: return early if (s)bin doesn't exist.

parent 16b69317
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,13 @@ module FormulaCellarChecks
return unless bin.directory?
return unless bin.children.length > 0
bin = (HOMEBREW_PREFIX/bin.basename).realpath
return if ORIGINAL_PATHS.include? bin
prefix_bin = (HOMEBREW_PREFIX/bin.basename)
return unless prefix_bin.directory?
["#{bin} is not in your PATH",
prefix_bin = prefix_bin.realpath
return if ORIGINAL_PATHS.include? prefix_bin
["#{prefix_bin} is not in your PATH",
"You can amend this by altering your ~/.bashrc file"]
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