Добавление /bin в shell.path
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
print("--- HCF ---")
|
||||
print()
|
||||
|
||||
|
||||
-- Colored print for code readability
|
||||
local function printcolor(text, clr)
|
||||
local old = term.getTextColor()
|
||||
@@ -9,6 +10,14 @@ local function printcolor(text, clr)
|
||||
term.setTextColor(old)
|
||||
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
|
||||
if fs.exists("/boot") then
|
||||
for _, name in pairs(fs.list("/boot")) do
|
||||
|
||||
Reference in New Issue
Block a user