aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-08-07 10:01:00 -0700
committerAdam Vandenberg2011-08-07 10:01:52 -0700
commitfae72fe7ca3296bb4dcd67f7a7cff4d11d1d217e (patch)
treebb6a76d30567ad662797094280fa86386453d04e /Library
parent9e5e27b425d69d1a7b68f6f6a584c22b268738b2 (diff)
downloadhomebrew-fae72fe7ca3296bb4dcd67f7a7cff4d11d1d217e.tar.bz2
brew doctor: do not check TMPDIR if it is not set
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 03eec12a8..5bf8d03aa 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -711,6 +711,7 @@ end
def check_tmpdir
tmpdir = ENV['TMPDIR']
+ return if tmpdir.nil?
if !File.directory?(tmpdir)
puts "$TMPDIR #{tmpdir.inspect} doesn't exist."
puts