diff options
Diffstat (limited to 'xmake')
| -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 |
