We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c193c3 + 21ff82b commit 0546d90Copy full SHA for 0546d90
Library/Homebrew/diagnostic.rb
@@ -644,13 +644,18 @@ def check_for_multiple_volumes
644
real_cellar = HOMEBREW_CELLAR.realpath
645
where_cellar = volumes.which real_cellar
646
647
- tmp = Pathname.new(Dir.mktmpdir("doctor", HOMEBREW_TEMP))
648
begin
649
- real_tmp = tmp.realpath.parent
650
- where_tmp = volumes.which real_tmp
651
- ensure
652
- Dir.delete tmp
+ tmp = Pathname.new(Dir.mktmpdir("doctor", HOMEBREW_TEMP))
+ begin
+ real_tmp = tmp.realpath.parent
+ where_tmp = volumes.which real_tmp
+ ensure
653
+ Dir.delete tmp
654
+ end
655
+ rescue
656
+ return
657
end
658
+
659
return if where_cellar == where_tmp
660
661
<<-EOS.undent
0 commit comments