cmd/doctor: repair xattr not find

This commit is contained in:
ylht 2021-07-19 09:55:30 +08:00
parent 12d272abe8
commit e5986dba6c
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?