2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

style: fixed cmd log formatting via exec_cmd

This commit is contained in:
Gavin D'souza 2020-03-02 23:00:15 +05:30
parent b0649870ee
commit 0088d1565d

View File

@ -174,9 +174,8 @@ def clone_apps_from(bench_path, clone_from, update_app=True):
def exec_cmd(cmd, cwd='.'):
import shlex
logger.info(cmd)
cmd = shlex.split(cmd)
print("{0}$ {1}{2}".format(color.silver, cmd, color.nc))
cmd = shlex.split(cmd)
subprocess.call(cmd, cwd=cwd, universal_newlines=True)
def which(executable, raise_err = False):