From f5571dea410131991ae7f836cc6a52d82890d894 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 8 Feb 2017 22:11:42 +0800 Subject: improve os.rm and os.rmdir --- xmake/plugins/lua/scripts/rmdir.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'xmake/plugins/lua/scripts/rmdir.lua') diff --git a/xmake/plugins/lua/scripts/rmdir.lua b/xmake/plugins/lua/scripts/rmdir.lua index 15c97f7ae..76739814e 100644 --- a/xmake/plugins/lua/scripts/rmdir.lua +++ b/xmake/plugins/lua/scripts/rmdir.lua @@ -23,13 +23,7 @@ -- -- main -function rmdir.main(self, ...) - - -- rmdir all - for _, dir in ipairs(...) do - if os.isdir(dir) then - os.rmdir(dir) - end - end - +function main(...) + os.rmdir(...) end + -- cgit v1.3.1