From 7c00eb51c82154d82ae33b8d49e61297b7a8b638 Mon Sep 17 00:00:00 2001 From: Ponali Date: Wed, 13 Aug 2025 16:01:37 +0200 Subject: [PATCH] Fixed a bug that made Webinstall crash on systems with only one writable disk --- webinstall.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinstall.lua b/webinstall.lua index 5ac5425..9a565c2 100644 --- a/webinstall.lua +++ b/webinstall.lua @@ -1,3 +1,4 @@ +local io = require("io") local component = require("component") if not component.isAvailable("internet") then io.stderr.write("This program requires an internet card to run.") @@ -95,6 +96,7 @@ if #drives == 0 then io.stderr.write("All drives are read-only.\nHalyde cannot be installed.") elseif #drives == 1 then installLocation = "/mnt/" .. drives[1] + installAddress = driveAddresses[1] end gpu.fill(1,1,width,height," ")