diff options
| author | ruki <[email protected]> | 2017-02-08 22:11:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-08 22:11:42 +0800 |
| commit | f5571dea410131991ae7f836cc6a52d82890d894 (patch) | |
| tree | 1da5045f7df779ec47016fc8861fac8aae754f77 /xmake/plugins/lua/scripts/rm.lua | |
| parent | f717d2da6d60566cfe84737950b311b4d7af9275 (diff) | |
improve os.rm and os.rmdir
Diffstat (limited to 'xmake/plugins/lua/scripts/rm.lua')
| -rw-r--r-- | xmake/plugins/lua/scripts/rm.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xmake/plugins/lua/scripts/rm.lua b/xmake/plugins/lua/scripts/rm.lua index 3f6b35a8a..2bf625349 100644 --- a/xmake/plugins/lua/scripts/rm.lua +++ b/xmake/plugins/lua/scripts/rm.lua @@ -24,13 +24,6 @@ -- main function main(...) - - -- rm all - for _, file_or_dir in ipairs(...) do - if os.exists(file_or_dir) then - os.rm(file_or_dir) - end - end - + os.rm(...) end |
