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.
xattr
1 parent 12e5e24 commit 2acd4e4Copy full SHA for 2acd4e4
1 file changed
Library/Homebrew/diagnostic.rb
@@ -1009,6 +1009,8 @@ def check_cask_environment_variables
1009
end
1010
1011
def check_cask_xattr
1012
+ return "Unable to find `xattr`." unless File.exist?("/usr/bin/xattr")
1013
+
1014
result = system_command "/usr/bin/xattr", args: ["-h"]
1015
1016
return if result.status.success?
@@ -1031,8 +1033,6 @@ def check_cask_xattr
1031
1033
1032
1034
elsif result.stderr.include? "pkg_resources.DistributionNotFound"
1035
"Your Python installation is unable to find `xattr`."
- elsif result.stderr.include? "No such file or directory"
- "Unable to find `xattr`."
1036
else
1037
"unknown xattr error: #{result.stderr.split("\n").last}"
1038
0 commit comments