aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mod_python.rb
diff options
context:
space:
mode:
authorsamueljohn2012-02-07 16:08:06 +0100
committerJack Nagel2012-02-08 14:41:55 -0600
commit1bf9a147e5b35a433d8ed748b65153812fba1930 (patch)
treea70f5311ebe583fa85518dd71b3b68e0a2e068a6 /Library/Formula/mod_python.rb
parente6087de5723b2f0c427051e36e5941f9ffe15ee7 (diff)
downloadhomebrew-1bf9a147e5b35a433d8ed748b65153812fba1930.tar.bz2
brew --config: properly handle empty `which` strings
Symptom: If no python/ruby/perl is in your path, then `which x`.chomp returns an empty string and `unless ""` is still true. So, N/A is never displayed. Instead, ruby's Pathname.new("").realpath returns the cwd. (I consider this realpath behavior a ruby bug) Fix: use empty? Closes #10027. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/mod_python.rb')
0 files changed, 0 insertions, 0 deletions