Added debug

This commit is contained in:
Anton Hvornum 2019-11-13 22:48:33 +00:00
parent 9627e2079b
commit 010e931aeb
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ def update_git(branch='master'):
if branch != 'master':
on_branch = simple_command('(cd /root/archinstall; git branch | grep "*" | cut -d\' \' -f 2)')
if on_branch.strip().lower() != branch.strip().lower():
print(f'[N] Changing branch to {branch}')
print(f'[N] Changing branch from {on_branch} to {branch}')
output = simple_command(f'(cd /root/archinstall; git checkout {branch}; git pull)')
print('[N] Rebooting the new branch')
if not 'rebooted' in args: