summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-22 22:35:56 +0800
committerruki <[email protected]>2019-10-22 09:35:36 +0800
commitaf9ffa418f6258a26d47ed6ce79d26eef77b56c4 (patch)
tree85b87df987ecd40a98e3e876363054f892953f30
parentd10af71b2362b18393cb2e4bf90ac4d5d438990a (diff)
fix confirm when redirecting output
m---------core/src/tbox/tbox0
-rw-r--r--xmake/core/base/utils.lua2
2 files changed, 1 insertions, 1 deletions
diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox
-Subproject bfdcc33776c7e3c602ac7a4081ad17a365c02d8
+Subproject eb29b093abfeb7db2d7ae95892a055749df17af
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua
index 58721cc1e..878ca3c16 100644
--- a/xmake/core/base/utils.lua
+++ b/xmake/core/base/utils.lua
@@ -319,7 +319,7 @@ function utils.confirm(opt)
-- get answer
io.flush()
- confirm = option.boolean(io.read():trim())
+ confirm = option.boolean((io.read() or "false"):trim())
if type(confirm) ~= "boolean" then
confirm = default
end