Skip to content

Commit

Permalink
reset utils
Browse files Browse the repository at this point in the history
  • Loading branch information
rcitach committed Nov 5, 2024
1 parent 5119358 commit a42b877
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/scripts/modules/rt/rt_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,8 @@ function cp_with_symlink(srcpath, dstpath, opt)
else
option = opt or {symlink = true}
end
if (opt and opt.del == false) then
os.execv("cp -r", {srcpath, dstpath})
else
os.tryrm(dstpath)
os.vcp(srcpath, dstpath, option)
end
os.tryrm(dstpath)
os.vcp(srcpath, dstpath, option)
end

function dirsize(dir)
Expand Down

0 comments on commit a42b877

Please sign in to comment.