Добавление /bin в shell.path

This commit is contained in:
2026-07-26 18:34:38 +07:00
parent 8e2fbe2c4f
commit 4d67656505
+9
View File
@@ -1,6 +1,7 @@
print("--- HCF ---") print("--- HCF ---")
print() print()
-- Colored print for code readability -- Colored print for code readability
local function printcolor(text, clr) local function printcolor(text, clr)
local old = term.getTextColor() local old = term.getTextColor()
@@ -9,6 +10,14 @@ local function printcolor(text, clr)
term.setTextColor(old) term.setTextColor(old)
end end
printcolor("Adding /bin to PATH...", colors.gray)
do
local old = shell.path()
local new = old .. ":/bin"
shell.setPath(new)
end
printcolor("Checking boot folder...", colors.gray)
-- Boot folder check -- Boot folder check
if fs.exists("/boot") then if fs.exists("/boot") then
for _, name in pairs(fs.list("/boot")) do for _, name in pairs(fs.list("/boot")) do