diff --git a/tools/scripts/modules/rt/rt_utils.lua b/tools/scripts/modules/rt/rt_utils.lua index b5d9fc0..3793f23 100644 --- a/tools/scripts/modules/rt/rt_utils.lua +++ b/tools/scripts/modules/rt/rt_utils.lua @@ -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)