Update install.lua

release fix
This commit is contained in:
Robert Jelic
2023-05-15 22:29:27 +02:00
parent c0d670b57d
commit eb80f2daac

View File

@@ -149,14 +149,14 @@ function installer.getBasaltData()
end
function installer.getRelease(version)
local v = installer.getBasaltData().versions[version]
if(v~=nil)then
--local v = installer.getBasaltData().versions[version]
--if(v~=nil)then
printStatus("Downloading basalt "..version)
local content = http.get("https://basalt.madefor.cc/versions/"..v, {Authorization = _G._GIT_API_KEY and "token ".._G._GIT_API_KEY})
local content = http.get("https://basalt.madefor.cc/versions/"..version, {Authorization = _G._GIT_API_KEY and "token ".._G._GIT_API_KEY})
if(content~=nil)then
return content.readAll()
end
end
--end
end
function installer.downloadRelease(file, version)