
File.expand_path raises ArgumentError when it is passed a path with a nonexistent username, e.g.: $ PATH=~foo/bin:$PATH brew /usr/local/Library/Homebrew/global.rb:97:in `expand_path': user foo doesn't exist (ArgumentError) However, `brew doctor` does its own expansion of PATH entries and outputs warnings if this happens, so let's just ignore it here and continue on our way. Signed-off-by: Jack Nagel <jacknagel@gmail.com>