From 211fdee511b0defabee12439344dfcade18863b9 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 13 Nov 2019 22:51:16 +0000 Subject: Fixed branch checking --- archinstall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 35938763..2222a511 100644 --- a/archinstall.py +++ b/archinstall.py @@ -336,8 +336,8 @@ def update_git(branch='master'): # if(num_changes): 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(): + on_branch = simple_command('(cd /root/archinstall; git branch | grep "*" | cut -d\' \' -f 2)').decode('UTF-8').strip() + if on_branch.lower() != branch.lower(): 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') -- cgit v1.2.3-70-g09d2