mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -05:00
exec: run_cmd() include cwd in debug log
This commit is contained in:
parent
f535344351
commit
5c8f0acfcd
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ def run_cmd(
|
|||
cmd = env_cmd + wrapped_script
|
||||
if switch_user:
|
||||
cmd = generate_cmd_su(cmd, switch_user, elevation_method=elevation_method)
|
||||
logging.debug(f'Running cmd: "{cmd}"')
|
||||
logging.debug(f'Running cmd: "{cmd}"' + (f' (path: {repr(cwd)})' if cwd else ''))
|
||||
if attach_tty:
|
||||
return subprocess.call(cmd, **kwargs)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue