Debugging

This commit is contained in:
Lord Anton Hvornum 2018-04-07 15:32:28 +02:00
parent c68152fb36
commit 88dfcad86c
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ def run(cmd, echo=False):
# print(data.decode('UTF-8'), end='')
output += data
output += handle.stdout.read()
print('Command done:', output)
handle.stdout.close()
return output
@ -62,6 +63,7 @@ def update_git():
## Not the most elegant way to make sure git conflicts doesn't occur (yea fml)
os.remove('/root/archinstall/archinstall.py')
os.remove('/root/archinstall/README.md')
# sh -c 'cd /c && ../a/helloworld'
output = run('(cd /root/archinstall; git fetch --all)') # git reset --hard origin/<branch_name>
if b'error:' in output: