diff --git a/Library/Homebrew/cask/artifact/moved.rb b/Library/Homebrew/cask/artifact/moved.rb index 429a0945a8..ab5212d0f8 100644 --- a/Library/Homebrew/cask/artifact/moved.rb +++ b/Library/Homebrew/cask/artifact/moved.rb @@ -92,7 +92,7 @@ module Cask if target.directory? if target.writable? - source.children.each { |child| FileUtils.move(child, target + child.basename) } + source.children.each { |child| FileUtils.move(child, target/child.basename) } else source.children.each do |child| command.run!("/bin/cp", args: ["-pR", child, target/child.basename],