diff options
| author | ruki <[email protected]> | 2017-03-27 17:57:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-27 17:58:56 +0800 |
| commit | 71d627e4aa9b5780e63fc6b679c74548844c5feb (patch) | |
| tree | 46d8e8c874d045ca1f4d492b6edf82f5d716ae54 /xmake/actions/uninstall/main.lua | |
| parent | 235bb967883ab0686bab731c8e94a4a0bb7677ab (diff) | |
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/actions/uninstall/main.lua')
| -rw-r--r-- | xmake/actions/uninstall/main.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/actions/uninstall/main.lua b/xmake/actions/uninstall/main.lua index 297c56bc6..36342f7b6 100644 --- a/xmake/actions/uninstall/main.lua +++ b/xmake/actions/uninstall/main.lua @@ -73,10 +73,9 @@ function main() cprint("${bright yellow}note: ${default yellow}try continue to uninstall 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) |
