1
0
Fork 0

update_app_level: use absolute path for github token fetching

This commit is contained in:
Alexandre Aubin 2023-01-20 18:07:01 +01:00
parent 4a55ea6e45
commit ba0fdb8ae2

View file

@ -7,7 +7,7 @@ import sys
import json import json
from collections import OrderedDict from collections import OrderedDict
token = open(".github_token").read().strip() token = open(os.path.dirname(__file__) + "/../../.github_token").read().strip()
tmpdir = tempfile.mkdtemp(prefix="update_app_levels_") tmpdir = tempfile.mkdtemp(prefix="update_app_levels_")
os.system(f"git clone 'https://oauth2:{token}@github.com/yunohost/apps' {tmpdir}") os.system(f"git clone 'https://oauth2:{token}@github.com/yunohost/apps' {tmpdir}")