summaryrefslogtreecommitdiff
path: root/xmake/actions/install/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/actions/install/main.lua')
-rw-r--r--xmake/actions/install/main.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/actions/install/main.lua b/xmake/actions/install/main.lua
index be09c75ff..97ca5ac99 100644
--- a/xmake/actions/install/main.lua
+++ b/xmake/actions/install/main.lua
@@ -73,10 +73,9 @@ function main()
cprint("${bright yellow}note: ${default yellow}try continue to install with administrator permission again?")
cprint("please input: y (y/n)")
- -- TODO fix read api
-- get answer
io.flush()
- if io._read() == 'y' then
+ if io.read() == 'y' then
-- install target with administrator permission
os.runv(os.sudo(), argv)