From 8d0c8fd978506edb5cdca8c68e8e948087428fab Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 24 Sep 2013 23:07:01 +0100 Subject: [PATCH] update: handle realpath exception. --- Library/Homebrew/cmd/update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index b1cb5d9671..682c5522a7 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)