From ea999ac04adce2e6568a028ffc59a28e980dcf0b Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Mon, 6 Nov 2023 14:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20use=20tryrm,=20because=20?= =?UTF-8?q?xmake=20os.exists=20has=20a=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/scripts/modules/rt/rt_utils.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/scripts/modules/rt/rt_utils.lua b/tools/scripts/modules/rt/rt_utils.lua index 04dcc77..3793f23 100644 --- a/tools/scripts/modules/rt/rt_utils.lua +++ b/tools/scripts/modules/rt/rt_utils.lua @@ -73,10 +73,7 @@ function cp_with_symlink(srcpath, dstpath, opt) else option = opt or {symlink = true} end - - if os.exists(dstpath) then - os.vrm(dstpath) - end + os.tryrm(dstpath) os.vcp(srcpath, dstpath, option) end