Merge pull request #11740 from ylht/master

cmd/doctor: repair `xattr` not find
This commit is contained in:
Mike McQuaid 2021-07-19 12:53:30 +01:00 committed by GitHub
commit 4c3a8c7e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module Cask
def check_quarantine_support
odebug "Checking quarantine support"
if !system_command(xattr, print_stderr: false).success?
if !system_command(xattr, args: ["-h"], print_stderr: false).success?
odebug "There's no working version of `xattr` on this system."
:xattr_broken
elsif swift.nil?

View File

@ -1000,7 +1000,7 @@ module Homebrew
end
def check_cask_xattr
result = system_command "/usr/bin/xattr"
result = system_command "/usr/bin/xattr", args: ["-h"]
return if result.status.success?