diff --git a/Library/Homebrew/cask/artifact/moved.rb b/Library/Homebrew/cask/artifact/moved.rb index 41bf8a5944..48861a0f61 100644 --- a/Library/Homebrew/cask/artifact/moved.rb +++ b/Library/Homebrew/cask/artifact/moved.rb @@ -97,9 +97,7 @@ module Cask command.run!("/bin/cp", args: ["-pR", "#{source}/*", "#{source}/.*", "#{target}/"], sudo: true) end - unless Quarantine.copy_xattrs(source, target) - opoo "Unable to transfer extended attributes on the root directory" - end + Quarantine.copy_xattrs(source, target) source.rmtree elsif target.dirname.writable? FileUtils.move(source, target)