mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] it was splited by a tab
This commit is contained in:
parent
a1e215061e
commit
5d208f1ff0
1 changed files with 4 additions and 3 deletions
5
run.py
5
run.py
|
@ -76,8 +76,9 @@ async def monitor_apps_lists():
|
|||
print(f">>>>>>>>>>>>>>>>>>>>>>>>>>>>> git ls-remote {url} master")
|
||||
command = await asyncio.create_subprocess_shell(f"git ls-remote {url} master", stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
||||
data = await command.stdout.read()
|
||||
print(f">>>>>>>>>>>>>>>>>>>>>>>>>>>>> {data.decode()}")
|
||||
return data.decode().strip().split(" ")[0]
|
||||
commit_sha = data.decode().strip().replace("\t", " ").split(" ")[0]
|
||||
print(f">>>>>>>>>>>>>>>>>>>>>>>>>>>>> {commit_sha}")
|
||||
return commit_sha
|
||||
|
||||
for app_list_name, url in APPS_LISTS.items():
|
||||
async with aiohttp.ClientSession() as session:
|
||||
|
|
Loading…
Add table
Reference in a new issue