[openasar-canary] save commit on auto update

this was an L and i probably need sleep
This commit is contained in:
seth
2022-12-05 03:50:24 -05:00
parent c2004c65d8
commit 7653e48da9
+7
View File
@@ -21,3 +21,10 @@ cur = matches[0]
if sha == cur:
exit(f"{NAME}: Up to date!")
print(f"{NAME}: {cur} -> {sha}")
newspec = re.sub(REGEX_SHA, f"%define commit {sha}", txt)
f.close()
f = open(SPEC, "w")
f.write(newspec)
f.close()