From 88dfcad86c314fc5aa90a508f4e76d666f69099f Mon Sep 17 00:00:00 2001 From: Lord Anton Hvornum Date: Sat, 7 Apr 2018 15:32:28 +0200 Subject: Debugging --- archinstall.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index f8ebe9fe..57db7958 100644 --- a/archinstall.py +++ b/archinstall.py @@ -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/ if b'error:' in output: -- cgit v1.2.3-70-g09d2