fix: 更新安装器版本并修复catos.lua中的读取函数

将安装器版本从1.0.1 Beta 2更新至1.0.1 Beta 3
将catos.lua中的read()替换为term.read()以使用正确的终端读取函数
This commit is contained in:
2025-09-07 22:16:53 +08:00
parent 5b2394a325
commit 1e67ea4645
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ local SITE = "https://catos.cpolar.cn"
textutils.coloredPrint("You are going to install CatOS to your computer.")
textutils.coloredPrint("We suggest you backup the files before install the CatOS.")
textutils.coloredPrint(colors.yellow, "Are you sure? (y/n)")
local confirm = read()
local confirm = term.read()
if confirm ~= "y" then
print("Installation cancelled.")
return