Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local prefix = "pastebin get"
- local folder = "./pb/"
- local pastes = {} --"ZeSHG5GF","YB7R98zw"}
- local pasteNames = {} --"test.lua","refresh.lua"}
- function newPaste(name,location)
- table.insert(pastes,location)
- table.insert(pasteNames,name)
- end
- function getPastes()
- for i,v in pairs(pastes) do
- local r = prefix.." "..v.." "..folder..pasteNames[i]
- print(r)
- shell.run(r)
- end
- end
- ---confirm
- print("this will overwrite existing files. Continue? (Y)")
- local r = read()
- if r ~= "Y" then
- error("\n User declined")
- end
- fs.delete(folder)
- newPaste("test.lua","ZeSHG5GF")
- --newPaste("refresh.lua","YB7R98zw")
- newPaste("tunnelandback.lua","2zTAXzhe")
- newPaste("burnfuel.lua","Yg1FxrCt")
- newPaste("justbreak.lua","9ryMNfWr")
- newPaste("playnote.lua","cccTijSW")
- newPaste("checkForKey.lua","GYx6baDa")
- newPaste("dietree2.lua","f668qD33")
- newPaste("makepathway.lua","45AJGttZ")
- newPaste("refresh.lua","hZTKJeFw")
- newPaste("mnt.lua","Qx0t14Jr")
- newPaste("umnt.lua","8jgEcxkr")
- newPaste("getFuelVal.lua","HrWEnVBR")
- getPastes()
Add Comment
Please, Sign In to add comment