Index: pydir/utils.py |
diff --git a/pydir/utils.py b/pydir/utils.py |
index 33b58e9104baa0c0227fe37869dadcff0aa71937..1141e3e1a0f577396f9f11c3feacb3703bcbc5ce 100644 |
--- a/pydir/utils.py |
+++ b/pydir/utils.py |
@@ -3,11 +3,11 @@ import subprocess |
import sys |
def shellcmd(command, echo=True): |
- if echo: print '[cmd]', command |
- |
if not isinstance(command, str): |
command = ' '.join(command) |
+ if echo: print '[cmd]', command |
+ |
stdout_result = subprocess.check_output(command, shell=True) |
if echo: sys.stdout.write(stdout_result) |
return stdout_result |