12 lines
421 B
Python
12 lines
421 B
Python
import os
|
|
import asyncio
|
|
from ... import loop
|
|
|
|
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())
|