allow arguments for commands running in containers

This commit is contained in:
askiiart 2024-10-01 12:02:25 -05:00
parent c8dafc0826
commit 463cdf64fc
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

1
user
View file

@ -208,6 +208,7 @@ def exec_c(container, cmds):
exit(1) exit(1)
creation_env = os.environ.copy() creation_env = os.environ.copy()
creation_env['BLEND_NO_CHECK'] = 'true' creation_env['BLEND_NO_CHECK'] = 'true'
cmds = [ cmd.replace('\\-', '-') for cmd in cmds]
subprocess.run(['blend', 'enter', '-cn', container, '--', *cmds], env=creation_env) subprocess.run(['blend', 'enter', '-cn', container, '--', *cmds], env=creation_env)