aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb
index 9b2ff75f0..f3e40fc14 100644
--- a/Library/Homebrew/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -21,6 +21,7 @@ if ARGV == %w[--version] || ARGV == %w[-v]
end
def require?(path)
+ return false if path.nil?
require path
rescue LoadError => e
# we should raise on syntax errors but not if the file doesn't exist.