summaryrefslogtreecommitdiff
path: root/qface/shell.py
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen@ryannel.org>2018-12-24 13:32:17 +0100
committerJuergen Bocklage-Ryannel <juergen@ryannel.org>2018-12-24 13:32:17 +0100
commitca2868a450c4090d5460827a896648280bb72eb0 (patch)
treee2bcb28bb3d8f3d3efc86bb1c064380cd5579e60 /qface/shell.py
parent0a3ae7686e1100be452b8c435bdcd84ec242340e (diff)
parent7091420944250d11b2f5e9a1783a14e74480e8bc (diff)
downloadqtivi-qface-ca2868a450c4090d5460827a896648280bb72eb0.tar.gz
Merge branch 'release/2.0'2.0
Diffstat (limited to 'qface/shell.py')
-rw-r--r--qface/shell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qface/shell.py b/qface/shell.py
index 3d34d89..bf76f7c 100644
--- a/qface/shell.py
+++ b/qface/shell.py
@@ -6,11 +6,11 @@ API for interacting with the system shell
"""
-def sh(cmd, **kwargs):
+def sh(args, **kwargs):
"""
runs the given cmd as shell command
"""
- if not cmd:
+ if not args:
return
- click.echo('$ {0}'.format(cmd))
- return call(cmd, shell=True, **kwargs)
+ click.echo('$ {0}'.format(' '.join(args)))
+ return call(args, **kwargs)