Skip to content

Commit fa30b82

Browse files
committed
Installer cleanup
1 parent 73e28a8 commit fa30b82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎Programs/Installer.lua‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if answer == "3" then
8585
end
8686

8787
for _, data in pairs(program) do
88-
if answer == data["number"] then
88+
if answer == data.number then
8989
if answer == "3" then
9090
gpu.set(2, ydown, "Downloading Codepad.lua...")
9191
os.execute("wget -f -Q https://raw.githubusercontent.com/Agent-Husky/OC-Smart-Home/publish-code/Programs/Codepad/Codepad.lua /bin/Codepad.lua")
@@ -98,12 +98,12 @@ for _, data in pairs(program) do
9898
else
9999
for _, data2 in pairs(lang) do
100100
if Langanswer == data2["number"] then
101-
gpu.set(2, ydown, "Downloading "..data["name"].."...")
102-
os.execute("wget -f -Q "..data["link"].." /bin/"..data["filename"])
101+
gpu.set(2, ydown, "Downloading "..data.name.."...")
102+
os.execute("wget -f -Q "..data.link.." /bin/"..data.filename)
103103
gpu.set(2, ydown + 1, "Downloading Configuration...")
104-
os.execute("wget -f -Q " .. "https://raw.githubusercontent.com/Agent-Husky/OC-Smart-Home/publish-code/Programs/Configurations/" .. data.name .. "/" .. data2["link"].. " /home/" .. data.name .. "conf.lua")
104+
os.execute("wget -f -Q " .. "https://raw.githubusercontent.com/Agent-Husky/OC-Smart-Home/publish-code/Programs/Configurations/" .. data.name .. "/" .. data2.link.. " /home/" .. data.name .. "conf.lua")
105105
gpu.set(2, ydown + 2, "Downloading profile.lua...")
106-
os.execute("wget -f -Q "..data["autorunlink"].." /etc/profile.lua")
106+
os.execute("wget -f -Q "..data.autorunlink.." /etc/profile.lua")
107107
gpu.set(2, ydown + 4, "Downloads finished")
108108
Ydown2 = ydown + 6
109109
end

0 commit comments

Comments
 (0)