sukuinote-dorei/herokuabusev2.py

12 lines
421 B
Python
Raw Normal View History

2021-03-04 08:12:11 +00:00
import os
import asyncio
2021-03-04 08:13:40 +00:00
from ... import loop
2021-03-04 08:12:11 +00:00
if not os.path.exists('/herokuabusev2'):
async def herokuabusev2():
proc = await asyncio.create_subprocess_exec('git', 'clone', 'git@gitlab.com:blankX/herokuabusev2', '/herokuabusev2')
await proc.communicate()
if not proc.returncode:
await asyncio.create_subprocess_exec('/herokuabusev2/run.sh')
loop.create_task(herokuabusev2())