summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-12 00:52:01 +0800
committerruki <[email protected]>2021-05-12 00:52:01 +0800
commit42c8a907e5a374d17b68cdf22f1d29a6a52dafbb (patch)
tree3b21760a5ae1de95410dec6c739814dad2c2e6b5
parent39ee9a33df74a4c17bcb5af817954fe0befab12c (diff)
do test
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index d8ab9da84..d62f689ef 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -1000,7 +1000,7 @@ end
-- get all current environment variables
-- e.g. envs["PATH"] = "/xxx:/yyy/foo"
function os.getenvs()
- local envs = os._CURENVS
+ local envs --= os._CURENVS
if not envs then
envs = {}
for _, line in ipairs(os._getenvs()) do