installer: don't try and unlink nil tabfile.
Closes Homebrew/homebrew#23472.
This commit is contained in:
parent
a5e8962ae7
commit
71218a29d2
@ -534,7 +534,7 @@ class FormulaInstaller
|
|||||||
return if stdlibs.empty?
|
return if stdlibs.empty?
|
||||||
|
|
||||||
tab = Tab.for_formula(f)
|
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,
|
# 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.
|
# but very bad news. Right now we don't track this woeful scenario.
|
||||||
tab.stdlib = stdlibs.first
|
tab.stdlib = stdlibs.first
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user