add shell command in manage post-*
This commit is contained in:
parent
b007e5923c
commit
3ac9eaedf1
@ -125,7 +125,7 @@ def link_environment(config, env, **kwargs):
|
||||
|
||||
if "post-link" in package:
|
||||
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}`")
|
||||
|
||||
def install_environment(config, env, **kwargs):
|
||||
@ -148,7 +148,7 @@ def install_environment(config, env, **kwargs):
|
||||
|
||||
if "post-install" in package:
|
||||
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}`")
|
||||
|
||||
def setup_environment(config, env, **kwargs):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user