summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/batchcmds.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-17 22:29:54 +0800
committerruki <[email protected]>2023-11-17 22:29:54 +0800
commitbd74082ad5740e0b97ffe237216dd533eb3d0383 (patch)
treedd8b77d4339193e4ddc49497b282670d025b6e1c /xmake/modules/private/utils/batchcmds.lua
parent0384acec887c4132c4bead81ed6dc05d3c0397ad (diff)
fix batchcmds
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
-rw-r--r--xmake/modules/private/utils/batchcmds.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua
index fe518cbec..cbe924f53 100644
--- a/xmake/modules/private/utils/batchcmds.lua
+++ b/xmake/modules/private/utils/batchcmds.lua
@@ -352,18 +352,18 @@ function batchcmds:mkdir(dir)
end
-- add command: os.rmdir
-function batchcmds:rmdir(dir)
- table.insert(self:cmds(), {kind = "rmdir", dir = dir})
+function batchcmds:rmdir(dir, opt)
+ table.insert(self:cmds(), {kind = "rmdir", dir = dir, opt = opt})
end
-- add command: os.rm
-function batchcmds:rm(filepath)
- table.insert(self:cmds(), {kind = "rm", filepath = filepath})
+function batchcmds:rm(filepath, opt)
+ table.insert(self:cmds(), {kind = "rm", filepath = filepath, opt = opt})
end
-- add command: os.tryrm
-function batchcmds:tryrm(filepath)
- table.insert(self:cmds(), {kind = "tryrm", filepath = filepath})
+function batchcmds:tryrm(filepath, opt)
+ table.insert(self:cmds(), {kind = "tryrm", filepath = filepath, opt = opt})
end
-- add command: os.cp