From 80d7fca43d73bde4576f239c95e94388cc2b1a23 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 11 Apr 2019 21:15:17 +0200 Subject: Fixed a output message --- archinstall.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 7bfac35d..f76911a8 100644 --- a/archinstall.py +++ b/archinstall.py @@ -205,7 +205,7 @@ 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 reset --hard origin/ / git fetch --all + output = simple_command('(cd /root/archinstall; git reset --hard origin/$(git branch | grep "*" | cut -d\' \' -f 2); git pull)') print(output) if b'error:' in output: @@ -466,8 +466,8 @@ if __name__ == '__main__': exit(1) o = sys_command('/usr/bin/cryptsetup open {drive}{partition_2} luksdev --key-file {pwfile} --type luks2'.format(**args)).exec() - o = sys_command('/usr/bin/file /dev/mapper/luksdev').exec() # /dev/dm-0 - if b'cannot open' in b''.join(o): + o = b''.join(sys_command('/usr/bin/file /dev/mapper/luksdev').exec()) # /dev/dm-0 + if b'cannot open' in o: print('[E] Could not mount encrypted device.', o) exit(1) -- cgit v1.2.3-70-g09d2