mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
Write the version after first launch
This commit is contained in:
parent
bc88a68ad0
commit
714e4f787b
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@ end
|
|||
|
||||
http.Fetch("https://raw.githubusercontent.com/JonnyBro/beatrun/main/version.txt", function(body, size, headers, code)
|
||||
if code == 200 then
|
||||
if not file.Exists("beatrun/version.txt", "DATA") then
|
||||
file.Write("beatrun/version.txt", body)
|
||||
end
|
||||
|
||||
if body ~= VERSIONGLOBAL then
|
||||
file.Write("beatrun/version.txt", body)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue