Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-04-11 19:36:43 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 19:36:43 +0200
commit47e788c557bc7268ec533aa686b9557cb48321a8 (patch)
treee11e9d39d30dd4930541f295dccc3d03a9fc498e
parent72b04d929196ef73ac9c2f340de5acbc28812e87 (diff)
Forgot to .exec()
-rw-r--r--archinstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index bed81f37..91383233 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -197,7 +197,7 @@ def update_git():
os.remove('/root/archinstall/archinstall.py')
os.remove('/root/archinstall/README.md')
- output = sys_command('(cd /root/archinstall; git fetch --all)') # git reset --hard origin/<branch_name>
+ output = sys_command('(cd /root/archinstall; git fetch --all)').exec() # git reset --hard origin/<branch_name>
if b'error:' in b''.join(output):
print('[N] Could not update git source for some reason.')
@@ -231,7 +231,7 @@ def device_state(name):
def grab_partitions(dev):
drive_name = os.path.basename(dev)
parts = oDict()
- o = sys_command('lsblk -o name -J -b {dev}'.format(dev=dev))
+ o = sys_command('lsblk -o name -J -b {dev}'.format(dev=dev)).exec()
if b'not a block device' in b''.join(o):
## TODO: Replace o = sys_command() with code, o = sys_command()
## and make sys_command() return the exit-code, way safer than checking output strings :P