diff options
| author | ruki <[email protected]> | 2023-11-17 22:40:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-17 22:40:22 +0800 |
| commit | 03671d0941bf93a5a66eff081d8b50c8f43a532a (patch) | |
| tree | 7cc774b1af1d317751a39d1ff9833f1cfd048395 /xmake/modules/private/utils/batchcmds.lua | |
| parent | 02c004d42d70979f3ca983dd960291761800e2a6 (diff) | |
improve to remove dirs
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index 0000b7111..eda3887c8 100644 --- a/xmake/modules/private/utils/batchcmds.lua +++ b/xmake/modules/private/utils/batchcmds.lua @@ -144,14 +144,6 @@ function _runcmd_rm(cmd, opt) end end --- run command: os.tryrm -function _runcmd_tryrm(cmd, opt) - local filepath = cmd.filepath - if not opt.dryrun then - os.tryrm(filepath, opt) - end -end - -- run command: os.rmdir function _runcmd_rmdir(cmd, opt) local dir = cmd.dir @@ -197,7 +189,6 @@ function _runcmd(cmd, opt) rmdir = _runcmd_rmdir, cd = _runcmd_cd, rm = _runcmd_rm, - tryrm = _runcmd_tryrm, cp = _runcmd_cp, mv = _runcmd_mv, ln = _runcmd_ln @@ -361,11 +352,6 @@ function batchcmds:rm(filepath, opt) table.insert(self:cmds(), {kind = "rm", filepath = filepath, opt = opt}) end --- add command: os.tryrm -function batchcmds:tryrm(filepath, opt) - table.insert(self:cmds(), {kind = "tryrm", filepath = filepath, opt = opt}) -end - -- add command: os.cp function batchcmds:cp(srcpath, dstpath, opt) table.insert(self:cmds(), {kind = "cp", srcpath = srcpath, dstpath = dstpath, opt = opt}) |
