Allow to use a commit hash for .relver

This commit is contained in:
jonathan buschmann 2023-09-05 22:04:43 +08:00
parent 41fb94defa
commit d1af2f7e08

View File

@ -29,7 +29,7 @@ local function file_write_mod(file, data)
end end
local text = file_read(FILE_ROLLING_H) local text = file_read(FILE_ROLLING_H)
local relver = file_read(FILE_RELVER_TXT):match("(%d+)") local relver = file_read(FILE_RELVER_TXT):match("(%w+)")
if relver then if relver then
text = text:gsub("ROLLING", relver) text = text:gsub("ROLLING", relver)