aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo/util.py')
-rw-r--r--MgaRepo/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py
index 057923f..18759aa 100644
--- a/MgaRepo/util.py
+++ b/MgaRepo/util.py
@@ -25,10 +25,10 @@ def execcmd(*cmd, **kwargs):
assert (kwargs.get("collecterr") and kwargs.get("show")) or not kwargs.get("collecterr"), \
("execcmd is implemented to handle collecterr=True only if show=True")
# split command args
- if isinstance(cmd[0], str):
+ if isinstance(cmd[0], str) and len(cmd) is 1:
cmdargs = shlex.split(cmd[0])
else:
- cmdargs = cmd[0][:]
+ cmdargs = cmd[:]
stdout = None
stderr = None