Skip to content

Commit 984273b

Browse files
authored
Merge pull request #20153 from Homebrew/brew-doctor-linux-cask-errors
Improve `brew doctor` warnings about `xattr` and cask quarantine
2 parents a6b1d42 + 2acd4e4 commit 984273b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Library/Homebrew/diagnostic.rb

Lines changed: 4 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+
return "Unable to find `xattr`." unless File.exist?("/usr/bin/xattr")
1013+
10121014
result = system_command "/usr/bin/xattr", args: ["-h"]
10131015

10141016
return if result.status.success?
@@ -1044,6 +1046,8 @@ def check_cask_quarantine_support
10441046
"No Cask quarantine support available: there's no working version of `xattr` on this system."
10451047
when :no_swift
10461048
"No Cask quarantine support available: there's no available version of `swift` on this system."
1049+
when :linux
1050+
"No Cask quarantine support available: not available on Linux."
10471051
else
10481052
"No Cask quarantine support available: unknown reason."
10491053
end

0 commit comments

Comments
 (0)