Fixed a bug that made Webinstall crash on systems with only one writable disk

This commit is contained in:
Ponali
2025-08-13 16:01:37 +02:00
parent fdc54a8839
commit 7c00eb51c8
+2
View File
@@ -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," ")