From a42b877568db4d5dffe1e76231404de2a12398f0 Mon Sep 17 00:00:00 2001 From: rcitach Date: Tue, 5 Nov 2024 17:29:53 +0800 Subject: [PATCH] reset utils --- tools/scripts/modules/rt/rt_utils.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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)