Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commands = {
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/blankplane models/blankplane",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car models/car",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car2 models/car2",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car3 models/car3",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car4 models/car4",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car5 models/car5",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/car6 models/car6",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/checkpoint models/checkpoint",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/checkpointPath models/checkpointPath",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/numbers models/numbers",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path2 models/path2",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path3 models/path3",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path4 models/path4",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/path5 models/path5",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/plane models/plane",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/shadow models/shadow",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/smoke models/smoke",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/Mountains.lua Mountains.lua",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/Pine3D.lua Pine3D.lua",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/betterblittle.lua betterblittle.lua",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/bitmap.lua bitmap.lua",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/bmpConverter.lua bmpConverter.lua",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/objLoader.lua objLoader.lua",
- "wget https://rawcdn.githack.com/remie92/Computer-Racer/refs/heads/main/startup.lua startup.lua",
- }
- currCommand=""
- currIndex=1
- function downloadFile()
- print("Downloading "..currIndex.."/"..#commands..": "..currCommand)
- local ok = shell.run(currCommand)
- return ok
- end
- for i, v in ipairs(commands) do
- currIndex = i
- currCommand = v
- local success = false
- while not success do
- success = downloadFile()
- if not success then
- print("Failed to download. Retrying in 1 second...")
- sleep(1)
- end
- end
- sleep(0.25)
- end
- print("Everything is downloaded! Please reboot or run startup.lua!")
Advertisement
Add Comment
Please, Sign In to add comment