Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function checkUpdate()
- local h = http.get(MY_VERSION_NUMBER_FILE)
- -- check h has valid data
- -- check if version number from h is different from the one installed
- -- download and install update
- -- return "Installed update"
- -- else return "No update"
- -- else return "Can't get update file"
- end
Advertisement
Add Comment
Please, Sign In to add comment