index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-23 21:36:07 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-23 21:36:07 +0000 |
commit | 5c306c3bccf80a74756d13c06da7baa2e91f5256 (patch) | |
tree | 0b84f9aa3c573785558c9619d8d24bc1f7ea7923 /archinstall.py | |
parent | 53a57300cc3e322d9e10ce30ad03a8b00d7a0009 (diff) |
-rw-r--r-- | archinstall.py | 6 |
diff --git a/archinstall.py b/archinstall.py index 783db347..fa700ffe 100644 --- a/archinstall.py +++ b/archinstall.py @@ -235,8 +235,10 @@ class sys_command():#Thread): if not self.cmd[0][0] == '/': log('Worker command is not executed with absolute path, trying to find: {}'.format(self.cmd[0]), origin='spawn', level=5) - o = check_output(['which', self.cmd[0]]) - ##o = sys_command('sh which {}'.format(self.cmd[0]), emulate=False, hide_from_log=True) + x = Popen(f'/usr/bin/sh -c "which {self.cmd[0]}"', shell=True, stdout=PIPE) + while x.poll() is None: + pass + o = x.stdout.read() log('This is the binary {} for {}'.format(o.decode('UTF-8'), self.cmd[0]), origin='spawn', level=5) self.cmd[0] = o.decode('UTF-8').strip() |