Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-10-28 17:56:22 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-10-28 17:56:22 +0100
commit143cecd03f4f4a7c4bbb2b08bfc685407c18e59c (patch)
tree2ded699f984e9949cb65585c8fdf7727aa247336 /archinstall.py
parentebccac5a9fffa8f7149796bc1baede8364492df5 (diff)
Use which instead of whereis
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index ac544f79..9a5781f5 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -143,8 +143,8 @@ class sys_command():
def exec(self):
if not self.cmd[0][0] == '/':
print('[N] Command is not executed with absolute path, trying to find: {}'.format(self.cmd[0]))
- o = b''.join(sys_command('/usr/bin/whereis {}'.format(self.cmd[0])).exec())
- self.cmd[0] = o.split(b' ')[1].decode('UTF-8')
+ o = b''.join(sys_command('/usr/bin/which {}'.format(self.cmd[0])).exec())
+ self.cmd[0] = o.decode('UTF-8')
print('[N] This is what I\'m going with: {}'.format(self.cmd[0]))
# PID = 0 for child, and the PID of the child for the parent
self.pid, child_fd = pty.fork()