fix: xattr check in download quarantine

This commit is contained in:
Edward 2023-10-25 21:22:06 +08:00
parent 25ab4a2733
commit f21af1e3eb
No known key found for this signature in database

View File

@ -33,7 +33,7 @@ module Cask
def self.check_quarantine_support
odebug "Checking quarantine support"
if !system_command(xattr, args: ["-h"], print_stderr: false).success?
if xattr.nil? || !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?