function grabURL() url = "https://raw.githubusercontent.com/hbomb79/securitySystemPro/master/version" return url end errorMes = "ERROR" errorMesFatal = 'FatalException' function Check() for i=1, 3 do url = grabURL() if url == nil then errora.err('Updater URL', 'The Update Source URL Is Empty! Please Report If Not Your Fault') end local response = http.get(url) if response then local data = response.readLine() local f = fs.open("version", "r") currentVersion = f.readLine() f.close() if data ~= currentVersion then return true else return false end else return errorMes --error "The Update URL Cannot Be Resolved Or Is Missing [404]" end end return errorMes --error "The URL Cannot Be Reached! [208]" end function Update() --Updates The Updater Files for i=1, 3 do local response = http.get(updateURL) if response then local data = response.readAll() local f = io.open("/systemFiles/Install/updater") f:write(data) f:close() return errorMes else return errorMes end end return false --error "The Updater Request Timed Out." end