Добавление /bin в shell.path
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user