Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- os.loadAPI("/api/fileUtils")
- os.loadAPI("api/stringUtils")
- fileStr = fileUtils.readString("/updateList")
- lines = stringUtils.splitStr(fileStr,"\n")
- for i=1,#lines do
- tmpLine = lines[i]
- vals = stringUtils.splitStr(tmpLine,":")
- shell.run("rm",vals[1])
- shell.run("pastebin","get",vals[2],vals[1])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement