Update magic gen script

This commit is contained in:
Shy 2025-01-22 21:39:23 -05:00
parent 7d67354b96
commit 2d6553d5d2

View File

@ -1,8 +1,5 @@
try:
with open("/usr/lib/file/magic.mgc", "rb") as f:
data = f.read()
except:
data = bytes([])
with open("/usr/lib/file/magic.mgc", "rb") as f:
data = f.read()
print("char magic_database_buffer[%d] = {%s};" % (len(data), ",".join(str(int(b)) for b in data)))