Update chkupdate.py

This commit is contained in:
windowsboy111
2022-11-27 16:48:54 +08:00
committed by GitHub
parent 9031c8fa41
commit 11e281f300
@@ -10,6 +10,7 @@ LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).json()['tag_name']
ver = ver[1:]
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")