summaryrefslogtreecommitdiff
path: root/qface/shell.py
diff options
context:
space:
mode:
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)