Advertisement
SuperRavenSn1per

Untitled

Aug 25th, 2021 (edited)
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. repoUrl = "https://raw.githubusercontent.com/SuperRavenSn1per/Sm1l3y/"
  2. branch = "main"
  3. currentDir = fs.getDir(shell.getRunningProgram())
  4.  
  5. function install(iFile, fileName)
  6.   content = http.get(repoUrl..branch.."/"..iFile).readAll()
  7.   f = fs.open(fileName, "w")
  8.   f.write(content)
  9.   f.close()
  10. end
  11.  
  12. install("gamefiles", currentDir.."/gamefile")
  13. shell.run(currentDir.."/gamefile")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement