summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2021-04-29 19:50:21 +0800
committerxq114 <[email protected]>2021-04-29 19:50:21 +0800
commitcfc555e02394b84301f3396ec3eca4813edbad4c (patch)
tree8e32980cf984c6fe2498c116b926fef8ca2735b3
parent947219bb58249dae0c1619157ad7bcc594add156 (diff)
improve envfile
-rw-r--r--xmake/modules/private/xrepo/action/env.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index abcff7404..8703a726c 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -267,13 +267,13 @@ function info(key)
assert(os.isfile(os.projectfile()), "xmake.lua not found!")
print("[%s]", path.filename(os.projectdir()))
elseif key == "envfile" then
- print("%s", os.tmpfile())
+ print(os.tmpfile())
elseif key:startswith("script.") then
local shell = key:match("script%.(.+)")
print(_get_env_script(_package_getenvs(), shell, false))
elseif key:startswith("backup.") then
local shell = key:match("backup%.(.+)")
-
+
-- remove current environment variables first
print(_get_env_script(_package_getenvs(), shell, true))
print(_get_env_script(os.getenvs(), shell, false))