Recursive bomb issue

This commit is contained in:
Anton Hvornum 2019-06-20 18:23:20 +00:00
parent 41127daf58
commit eb3a846be8
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ def update_git():
if os.path.isfile('/root/archinstall/README.md'):
os.remove('/root/archinstall/README.md')
output = simple_command('(cd /root/archinstall; git reset --hard origin/$(git branch | grep "*" | cut -d\' \' -f 2); git pull)')
#output = simple_command('(cd /root/archinstall; git reset --hard origin/$(git branch | grep "*" | cut -d\' \' -f 2); git pull)')
output = simple_command('(cd /root/archinstall; git pull)')
if b'error:' in output:
print('[N] Could not update git source for some reason.')