From 29c992172666e4bad98d835b91c3d6292f0fa6f1 Mon Sep 17 00:00:00 2001 From: JBYoshi <12983479+JBYoshi@users.noreply.github.com> Date: Thu, 11 May 2023 12:47:37 -0500 Subject: [PATCH] Also use / above. --- Library/Homebrew/cask/artifact/moved.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],