doublequestionmark

apt-get downloader

Jun 17th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local update = http.get("https://raw.githubusercontent.com/DoubleQuestionMark/apt-get/master/apt-get")
  2. if fs.exists('apt-get') then
  3. fs.delete('apt-get')
  4. end
  5. if update then
  6. local handle = update.readAll()
  7. update.close()
  8. local file = fs.open("apt-get","w")
  9. file.write(handle)
  10. file.close()
  11. else
  12. print("An error occured while downloading apt-get")
  13. end
  14. shell.run('apt-get help')
Add Comment
Please, Sign In to add comment