index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-02 20:36:06 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-04-02 20:36:06 +0200 |
commit | f61c61305e95c564f22120bebbb861eddd7dee45 (patch) | |
tree | 99ffd29bfb8e30e6332676742927500013d99b95 /archinstall/lib/general.py | |
parent | 35855700f711381755118a5e04a46ddcc1ba47fe (diff) | |
parent | 4221473e6782c659dbd1f2681b0d2e05a3aa54b6 (diff) |
-rw-r--r-- | archinstall/lib/general.py | 18 |
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index f2a714e7..ae2501c2 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -86,11 +86,19 @@ class sys_command():#Thread): if kwargs['emulate']: self.log(f"Starting command '{cmd}' in emulation mode.", level=LOG_LEVELS.Debug) - self.raw_cmd = cmd - try: - self.cmd = shlex.split(cmd) - except Exception as e: - raise ValueError(f'Incorrect string to split: {cmd}\n{e}') + if type(cmd) is list: + # if we get a list of arguments + self.raw_cmd = shlex.join(cmd) + self.cmd = cmd + else: + # else consider it a single shell string + # this should only be used if really necessary + self.raw_cmd = cmd + try: + self.cmd = shlex.split(cmd) + except Exception as e: + raise ValueError(f'Incorrect string to split: {cmd}\n{e}') + self.args = args self.kwargs = kwargs |