aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index b1cb5d967..682c5522a 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -20,7 +20,7 @@ module Homebrew extend self
tapped_formulae = Dir['Library/Formula/*'].map do |formula|
path = Pathname.new formula
next unless path.symlink?
- Pathname.new(path.realpath.to_s.gsub(/.*Taps\//, ''))
+ Pathname.new(path.realpath.to_s.gsub(/.*Taps\//, '')) rescue nil
end
tapped_formulae.compact!
unlink_tap_formula(tapped_formulae)