add shell command in manage post-*

This commit is contained in:
Tomas Mirchev 2025-02-25 05:55:16 +01:00
parent b007e5923c
commit 3ac9eaedf1

View File

@ -125,7 +125,7 @@ def link_environment(config, env, **kwargs):
if "post-link" in package: if "post-link" in package:
command = package["post-link"] command = package["post-link"]
subprocess.run(shlex.split(command), check=True) subprocess.run(command, shell=True, check=True)
print(f"\t> Post-link executed: `{command}`") print(f"\t> Post-link executed: `{command}`")
def install_environment(config, env, **kwargs): def install_environment(config, env, **kwargs):
@ -148,7 +148,7 @@ def install_environment(config, env, **kwargs):
if "post-install" in package: if "post-install" in package:
postinstall_command = package["post-install"] postinstall_command = package["post-install"]
subprocess.run(shlex.split(postinstall_command), check=True) subprocess.run(command, shell=True, check=True)
print(f"\t> Post-install executed: `{postinstall_command}`") print(f"\t> Post-install executed: `{postinstall_command}`")
def setup_environment(config, env, **kwargs): def setup_environment(config, env, **kwargs):