Skip to content

Commit

Permalink
Merge pull request #46 from xqyjlj/tryrm-dev
Browse files Browse the repository at this point in the history
🐞 fix: use tryrm, because xmake os.exists has a bug
  • Loading branch information
BernardXiong authored Nov 6, 2023
2 parents 2f18abd + ea999ac commit 2999a3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/scripts/modules/rt/rt_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2999a3b

Please sign in to comment.