Merge pull request #321 from minrk/shell-true

run commands with shell=True
Matthias Bussonnier 11 years ago
commit 65f15d1386

@ -296,7 +296,10 @@ def mtime(path):
def run(cmd, *args, **kwargs):
"""Echo a command before running it"""
log.info(" ".join(cmd))
if isinstance(cmd, list):
cmd = ' '.join(map(pipes.quote, cmd))
log.info('> ' + cmd)
kwargs['shell'] = True
return check_call(cmd, *args, **kwargs)

Loading…
Cancel
Save