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:
parent
b0649870ee
commit
0088d1565d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user