Advertisement
BlakeDarwinXE

[LUA] BDXE - Startup

Aug 14th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. -- Version 0.01
  2.  
  3. function autoUpdate( ... )
  4.     -- body
  5.     local varFile = { ... }
  6.     if fs.exists(varFile[1]) then
  7.         fs.delete(varFile[1])
  8.     end
  9.     shell.run("pastebin get", varFile[2], varFile[1])
  10. end
  11.  
  12. if fs.exists('Data') then
  13.     else
  14.         fs.makeDir('Data')
  15. end
  16.  
  17. if fs.exists('include') then
  18.     fs.delete('include')
  19.     end
  20.     fs.makeDir('include')
  21.  
  22.  
  23. autoUpdate('startup', 'yPEiqh0F')
  24. autoUpdate('include/checkfuel', 'UsH9NR5A')
  25. autoUpdate('include/api_turtle','UwG2ZNp6')
  26.  
  27. print('Your are running BDXE Version 0.01')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement