From 7ddeaeed235ee8ca14c0c9947e45d4f8d61f6058 Mon Sep 17 00:00:00 2001 From: TheWahlolly Date: Sun, 18 May 2025 20:26:37 +0300 Subject: [PATCH] Another fix to WebInstall. --- README.md | 2 +- webinstall.lua | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 412d948..7daed72 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A universal, customizable and feature-packed operating system for OpenComputers. ## Installation To install Halyde from OpenOS, simply run: -`pastebin run cwir7NH5` +`pastebin run iV8P6VZ5` If for some reason that doesn't work, try: diff --git a/webinstall.lua b/webinstall.lua index 0386c37..d980753 100644 --- a/webinstall.lua +++ b/webinstall.lua @@ -115,13 +115,13 @@ local oldFiles = {} for oldFile in fs.list(installLocation) do local usedFlag = false for i = 1, 3 do - for _, file in pairs(webInstallConfig[installationOrger[i]].files) do + for _, file in pairs(webInstallConfig[installationOrder[i]].files) do if oldFile == file then usedFlag = true end end - if webInstallConfig[installationOrger[i]].directories then - for _, dir in pairs(webInstallConfig[installationOrger[i]].directories) do + if webInstallConfig[installationOrder[i]].directories then + for _, dir in pairs(webInstallConfig[installationOrder[i]].directories) do if oldFile == dir .. "/" then usedFlag = true end @@ -134,7 +134,6 @@ for oldFile in fs.list(installLocation) do end for i = 1, 3 do local webInstallConfig = webInstallConfig[installationOrder[i]] - print("a") if webInstallConfig.directories then for _, directory in pairs(webInstallConfig.directories) do print("Creating " .. directory .. "...") @@ -151,5 +150,7 @@ end for _, oldFile in pairs(oldFiles) do fs.remove(oldFile) end + computer.setBootAddress(component.get(installLocation:sub(6, -2))) +component.invoke(component.get(installLocation:sub(6, -2)), "setLabel", "Halyde") computer.shutdown(true)