Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local installer = {
- ["mekanismreactorstatus"]="https://raw.githubusercontent.com/MisileLab/modpacks/main/scripts/mekanismreactorstatus.lua",
- ["mekanismreactorinput"]="https://raw.githubusercontent.com/MisileLab/modpacks/main/scripts/mekanismreactorinput.lua"
- }
- function file_exists(name)
- local f=io.open(name,"r")
- if f~=nil then io.close(f) return true else return false end
- end
- print("What do you want install?")
- print("program list")
- for i, _ in pairs(installer) do
- print(i)
- end
- local installwant = io.read()
- local file = http.get(installer[installwant])
- if file_exists(installwant..".lua") == true then
- fs.delete(installwant..".lua")
- end
- local f = fs.open(installwant..".lua", 'w')
- f.write(file.readAll())
- file.close()
- f.close()
Add Comment
Please, Sign In to add comment