Update install.lua

This commit is contained in:
Robert Jelic
2022-12-26 12:12:31 +01:00
committed by GitHub
parent e9aba2498b
commit 09e8589938

View File

@@ -243,6 +243,7 @@ function installer.generateWebVersion(file, version)
if(request~=nil)then
if(fs.exists(file))then
fs.delete(file)
end
local f = fs.open(file, "w")
local link = "https://basalt.madefor.cc/versions/"..version
local content = 'local request = http.get("'..link..'", _G._GIT_API_KEY and {Authorization = "token ".._G._GIT_API_KEY})\n'
@@ -257,7 +258,6 @@ end
f.write(content)
f.close()
printStatus("Web version successfully downloaded!")
end
else
error("Version doesn't exist!")
end