diff options
| author | ruki <[email protected]> | 2016-06-02 10:51:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-02 10:51:13 +0800 |
| commit | ac478a1b8661b5470830743f6b495235747eed61 (patch) | |
| tree | 9032a4970433ca8248ee52221f3298d8f29e9c5f /xmake/plugins/lua/scripts/cp.lua | |
| parent | b54dc3258ad1712451fce0b5ce820b3eb4d3debe (diff) | |
add lipo script
Diffstat (limited to 'xmake/plugins/lua/scripts/cp.lua')
| -rw-r--r-- | xmake/plugins/lua/scripts/cp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/lua/scripts/cp.lua b/xmake/plugins/lua/scripts/cp.lua index ef11468bb..5782a01da 100644 --- a/xmake/plugins/lua/scripts/cp.lua +++ b/xmake/plugins/lua/scripts/cp.lua @@ -25,7 +25,7 @@ function main(...) -- cp it local pathes = ... - if pathes and table.getn(pathes) == 2 then + if pathes and #pathes == 2 then os.cp(pathes[1], pathes[2]) end |
