Remove unreachable warning.
This commit is contained in:
parent
84fe93e5d7
commit
4935a8fbb2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user