Also use / above.
This commit is contained in:
parent
d0e64e2c57
commit
29c9921726
@ -92,7 +92,7 @@ module Cask
|
|||||||
|
|
||||||
if target.directory?
|
if target.directory?
|
||||||
if target.writable?
|
if target.writable?
|
||||||
source.children.each { |child| FileUtils.move(child, target + child.basename) }
|
source.children.each { |child| FileUtils.move(child, target/child.basename) }
|
||||||
else
|
else
|
||||||
source.children.each do |child|
|
source.children.each do |child|
|
||||||
command.run!("/bin/cp", args: ["-pR", child, target/child.basename],
|
command.run!("/bin/cp", args: ["-pR", child, target/child.basename],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user