Update installer.lua

This commit is contained in:
Ale32bit 2015-10-27 15:56:03 +01:00
parent 82468b94bf
commit 72100cca0b

View file

@ -52,42 +52,6 @@ local function center(text, y)
write(text) write(text)
end end
function spiral(y,time) -- made by BadCoder_
time = tonumber(time) * 2
frames = {
"/",
"-",
"\\",
"|"
}
cursor = 1
timer = nil
for i = 1 , tonumber(time) do
center(frames[cursor], y)
timer = os.startTimer(.5)
while true do
local e = {os.pullEvent()}
if e[1] == "timer" and e[2] == timer then
break
end
end
cursor = cursor + 1
if cursor > #frames then
cursor = 1
end
end
end
local function httpGet(url, save) local function httpGet(url, save)
if not url then if not url then
error("not enough arguments, expected 1 or 2", 2) error("not enough arguments, expected 1 or 2", 2)
@ -165,11 +129,5 @@ for k, v in pairs(files) do
end end
filesDownloaded = filesDownloaded + 1 filesDownloaded = filesDownloaded + 1
end end
clear()
term.setCursorPos(2, 2)
print("sPhone")
print("")
print(" sPhone installed!")
print("")
spiral(9, 2)
os.reboot() os.reboot()