diff options
| author | ruki <[email protected]> | 2023-11-17 22:29:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-17 22:29:54 +0800 |
| commit | bd74082ad5740e0b97ffe237216dd533eb3d0383 (patch) | |
| tree | dd8b77d4339193e4ddc49497b282670d025b6e1c /xmake/modules/private/utils/batchcmds.lua | |
| parent | 0384acec887c4132c4bead81ed6dc05d3c0397ad (diff) | |
fix batchcmds
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 12 |
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 |
