code / nomsu

Lines6.6K Lua5.1K PEG1.3K make117
2 others 83
Markdown60 Bourne Again Shell23
(17 lines)
1 #!/usr/bin/env nomsu -V7.0.0
2 ###
3 This file defines upgrades from Nomsu <2.5.5.5 to Nomsu 2.5.5.5
5 use "compatibility/compatibility"
7 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9 upgrade action [hash $, sha1 $] to "2.5.5.5" as
10 =lua ("
11 \(base64 decode (hash $)):gsub('.', function(c) return ('%x02'):format(c) end)
12 ")
14 upgrade action [file with hash $] to "2.5.5.5" as
15 file with hash
16 base64
17 =lua "\$:gsub('..', function(xx) return string.char(tonumber(xx, 16)) end)"