diff options
| author | xq114 <[email protected]> | 2021-08-24 22:21:17 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-08-24 22:21:17 +0800 |
| commit | b54b0ba654bb8b230efff2bd709839cf32bfb87e (patch) | |
| tree | 6e71cff5dcb8156696349dbb30496cea59f013cd /xmake/modules | |
| parent | e273de15d253d4dc1b904e4fa0da5fb1bbe57304 (diff) | |
make prompt output more robust
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/xrepo/action/env.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua index 297a0717c..91d9317ed 100644 --- a/xmake/modules/private/xrepo/action/env.lua +++ b/xmake/modules/private/xrepo/action/env.lua @@ -317,7 +317,7 @@ end function info(key) if key == "prompt" then assert(os.isfile(os.projectfile()), "xmake.lua not found!") - print("[%s]", path.filename(os.projectdir())) + io.write("[" .. path.filename(os.projectdir()) .. "]") elseif key == "envfile" then print(os.tmpfile()) elseif key == "config" then |
