diff options
| author | ruki <[email protected]> | 2019-10-22 22:35:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-10-22 09:35:36 +0800 |
| commit | af9ffa418f6258a26d47ed6ce79d26eef77b56c4 (patch) | |
| tree | 85b87df987ecd40a98e3e876363054f892953f30 /xmake/core/base/utils.lua | |
| parent | d10af71b2362b18393cb2e4bf90ac4d5d438990a (diff) | |
fix confirm when redirecting output
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
