summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/batchcmds.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-17 22:31:31 +0800
committerruki <[email protected]>2023-11-17 22:31:31 +0800
commit02c004d42d70979f3ca983dd960291761800e2a6 (patch)
treea4ce4eb532be9d9fbf8e90cbe45524170d7435e5 /xmake/modules/private/utils/batchcmds.lua
parentbd74082ad5740e0b97ffe237216dd533eb3d0383 (diff)
improve os.rm to support remove emptydirs
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
-rw-r--r--xmake/modules/private/utils/batchcmds.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua
index cbe924f53..0000b7111 100644
--- a/xmake/modules/private/utils/batchcmds.lua
+++ b/xmake/modules/private/utils/batchcmds.lua
@@ -140,7 +140,7 @@ end
function _runcmd_rm(cmd, opt)
local filepath = cmd.filepath
if not opt.dryrun then
- os.tryrm(filepath)
+ os.tryrm(filepath, opt)
end
end
@@ -148,7 +148,7 @@ end
function _runcmd_tryrm(cmd, opt)
local filepath = cmd.filepath
if not opt.dryrun then
- os.tryrm(filepath)
+ os.tryrm(filepath, opt)
end
end
@@ -156,7 +156,7 @@ end
function _runcmd_rmdir(cmd, opt)
local dir = cmd.dir
if not opt.dryrun and os.isdir(dir) then
- os.tryrm(dir)
+ os.tryrm(dir, opt)
end
end