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/rm.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'xmake/plugins/lua/scripts/rm.lua') 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 -- cgit v1.3.1