From 4d6765650574e1760c1b0244cec460326bf0b9bf Mon Sep 17 00:00:00 2001 From: h1n1 Date: Sun, 26 Jul 2026 18:34:38 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20/bin=20=D0=B2=20shell.path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- startup.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/startup.lua b/startup.lua index d4befac..3a50bb2 100644 --- a/startup.lua +++ b/startup.lua @@ -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