Merge pull request #11740 from ylht/master
cmd/doctor: repair `xattr` not find
This commit is contained in:
commit
4c3a8c7e5a
@ -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?
|
||||
|
||||
@ -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?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user