Fix asset version checking
This commit is contained in:
parent
ba3f26d074
commit
67320e02e9
|
|
@ -7,8 +7,8 @@ local function downloadAssetsRule(name)
|
|||
import("net.http")
|
||||
import("utils.archive")
|
||||
|
||||
local referenceVersion = io.readfile("assets/" .. name .. "_version.txt")
|
||||
local currentVersion = os.exists("assets/" .. name .. "/version.txt") and io.readfile("assets/" .. name .. "/version.txt")
|
||||
local referenceVersion = tonumber(io.readfile("assets/" .. name .. "_version.txt"))
|
||||
local currentVersion = os.exists("assets/" .. name .. "/version.txt") and tonumber(io.readfile("assets/" .. name .. "/version.txt"))
|
||||
if referenceVersion == currentVersion then
|
||||
utils.vprintf(name .. " assets are up-to-date, ignoring\n")
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue