diff options
| author | ruki <[email protected]> | 2017-09-14 00:41:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-13 22:11:58 +0800 |
| commit | 5e42ccae1391c717e35f2ae5abe2edc038696c59 (patch) | |
| tree | 67951d5773ff16a80caf37b9010619dfe70170e6 /xmake/actions/require/install.lua | |
| parent | 4a74ffdf99d837beb472aad734cd9d51e3344771 (diff) | |
aboid to run require install repeatly
Diffstat (limited to 'xmake/actions/require/install.lua')
| -rw-r--r-- | xmake/actions/require/install.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua index 5192eb952..9d635f135 100644 --- a/xmake/actions/require/install.lua +++ b/xmake/actions/require/install.lua @@ -98,6 +98,10 @@ end -- install packages function main(requires) + -- avoid to run this task repeatly + if _g.installed then return end + _g.installed = true + -- init requires local requires_extra = nil if not requires then |
