mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-07 12:22:19 +00:00
Update chkupdate.py
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user