aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2011-08-07 10:01:00 -0700
committerAdam Vandenberg2011-08-07 10:01:52 -0700
commit6666494551e4c8ed68fb46fcbcc89f334a283012 (patch)
treeec77f28e5d127ddd7ac55f83a3bf53d11b3c822f /Library/Homebrew
parent554147fa99eaad902785ac7f7c2daaa7c5321f8a (diff)
downloadbrew-6666494551e4c8ed68fb46fcbcc89f334a283012.tar.bz2
brew doctor: do not check TMPDIR if it is not set
Diffstat (limited to 'Library/Homebrew')
-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