Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg = ...
- local past_versions = {
- "1.0",
- }
- function main()
- if fs.exists("/install") then fs.delete("/install") end
- local content = http.get("https://raw.githubusercontent.com/MarkFerguss/portal/main/install.lua")
- local h = fs.open("/install","w")
- h.write(content.readAll())
- h.close()
- end
- function check(list,name)
- local check = false
- for i,v in pairs(list) do
- if type(v) == "string" then
- if string.find(name,v) ~= nil then check = true end
- local array = i
- end
- end
- return check, array
- end
- if arg ~= nil and type(arg) == "string" then
- if check(past_versions,arg) then
- fs.delete("/install")
- main()
- end
- else
- main()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement