Skip to content

Commit e42084d

Browse files
authored
Merge pull request #20163 from Homebrew/brew-doctor-xattr-linux-check
Remove redundant `xattr` doctor check on systems without quarantine support
2 parents 27b9bf2 + 426da94 commit e42084d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Library/Homebrew/diagnostic.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,8 @@ def check_cask_environment_variables
10091009
end
10101010

10111011
def check_cask_xattr
1012+
# If quarantine is not available, a warning is already shown by check_cask_quarantine_support so just return
1013+
return unless Cask::Quarantine.available?
10121014
return "Unable to find `xattr`." unless File.exist?("/usr/bin/xattr")
10131015

10141016
result = system_command "/usr/bin/xattr", args: ["-h"]

0 commit comments

Comments
 (0)