Skip to content

Commit 2999a3b

Browse files
authored
Merge pull request #46 from xqyjlj/tryrm-dev
🐞 fix: use tryrm, because xmake os.exists has a bug
2 parents 2f18abd + ea999ac commit 2999a3b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tools/scripts/modules/rt/rt_utils.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ function cp_with_symlink(srcpath, dstpath, opt)
7373
else
7474
option = opt or {symlink = true}
7575
end
76-
77-
if os.exists(dstpath) then
78-
os.vrm(dstpath)
79-
end
76+
os.tryrm(dstpath)
8077
os.vcp(srcpath, dstpath, option)
8178
end
8279

0 commit comments

Comments
 (0)