diff options
author | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-12-24 13:32:17 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-12-24 13:32:17 +0100 |
commit | ca2868a450c4090d5460827a896648280bb72eb0 (patch) | |
tree | e2bcb28bb3d8f3d3efc86bb1c064380cd5579e60 /qface/shell.py | |
parent | 0a3ae7686e1100be452b8c435bdcd84ec242340e (diff) | |
parent | 7091420944250d11b2f5e9a1783a14e74480e8bc (diff) | |
download | qtivi-qface-ca2868a450c4090d5460827a896648280bb72eb0.tar.gz |
Merge branch 'release/2.0'2.0
Diffstat (limited to 'qface/shell.py')
-rw-r--r-- | qface/shell.py | 8 |
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) |