Skip to content

Commit

Permalink
fix: use -R in copy_file(is_dir=True) so macos & linux behavior are t…
Browse files Browse the repository at this point in the history
…he same (#3383)
  • Loading branch information
gregmagolan authored Apr 1, 2022
1 parent b74d12d commit 2fd97fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def copy_cmd(ctx, src, dst):
# buildifier: disable=function-docstring
def copy_bash(ctx, src, dst):
if dst.is_directory:
cmd_tmpl = "rm -rf \"$2\" && cp -rf \"$1/\" \"$2\""
cmd_tmpl = "rm -rf \"$2\" && cp -fR \"$1/\" \"$2\""
mnemonic = "CopyDirectory"
progress_message = "Copying directory %s" % src.path
else:
Expand Down

0 comments on commit 2fd97fb

Please sign in to comment.