diff options
| author | ruki <[email protected]> | 2017-02-08 20:40:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-08 20:40:34 +0800 |
| commit | f717d2da6d60566cfe84737950b311b4d7af9275 (patch) | |
| tree | e2250e917c8e8064a84da8bd5d491c375fd3fc50 /xmake/plugins/lua/scripts/cp.lua | |
| parent | f32315b12be847b6231b025388d72c6b529313c4 (diff) | |
improve os.cp
Diffstat (limited to 'xmake/plugins/lua/scripts/cp.lua')
| -rw-r--r-- | xmake/plugins/lua/scripts/cp.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/plugins/lua/scripts/cp.lua b/xmake/plugins/lua/scripts/cp.lua index e3c423389..72153adb2 100644 --- a/xmake/plugins/lua/scripts/cp.lua +++ b/xmake/plugins/lua/scripts/cp.lua @@ -25,11 +25,7 @@ -- main function main(...) - -- cp it - local pathes = ... - if pathes and #pathes == 2 then - os.cp(pathes[1], pathes[2]) - end - + -- copy it + os.cp(...) end |
