summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-07 22:56:23 +0800
committerruki <[email protected]>2019-05-07 11:38:23 +0800
commit1c147263e7f75806e3011bd370df8230a8e075c6 (patch)
tree56850747dcde96b5987f8421b378cb3081bfd471 /xmake/core/base/os.lua
parentf6781967bc3e54427c9b57db0ffaa43ac567ab84 (diff)
improve os.addenv
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 82ff8fcf0..3daebd280 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -945,7 +945,7 @@ function os.addenv(name, ...)
if #values > 0 then
return os._setenv(name, table.concat(values, sep) .. sep .. (os.getenv(name) or ""))
else
- return os.getenv(name)
+ return true
end
end
@@ -962,7 +962,7 @@ function os.addenvp(name, values, sep)
if #values > 0 then
return os._setenv(name, table.concat(values, sep) .. sep .. (os.getenv(name) or ""))
else
- return os.getenv(name)
+ return true
end
end