aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2013-10-23 12:39:42 +0100
committerMike McQuaid2013-10-23 12:42:20 +0100
commit71218a29d22f335eccaa5870e46b3667f134c4b7 (patch)
tree15748e83f6aac40229fb7583b013a13e18c7dcb8 /Library/Homebrew
parenta5e8962ae762fea3bc22f350c5ad6e1526dd3b5f (diff)
downloadbrew-71218a29d22f335eccaa5870e46b3667f134c4b7.tar.bz2
installer: don't try and unlink nil tabfile.
Closes Homebrew/homebrew#23472.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index a7b233cf3..0a6277384 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -534,7 +534,7 @@ class FormulaInstaller
return if stdlibs.empty?
tab = Tab.for_formula(f)
- tab.tabfile.unlink
+ tab.tabfile.unlink if tab.tabfile
# It's technically possible for the same lib to link to multiple C++ stdlibs,
# but very bad news. Right now we don't track this woeful scenario.
tab.stdlib = stdlibs.first