Skip to content

Commit 08a332d

Browse files
feat: use exec in wrapper if postHook is empty (#101)
avoid unnecesary bash process and improves signal handling
1 parent 1664140 commit 08a332d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/process-compose/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ in
4545
${config.cli.preHook}
4646
4747
# IMPORTANT: We **must** use environment variables for everything but non-global options, otherwise the use of sub-command specific CLI options will prevent the user from passing their own subcommands reliably.
48-
${config.cli.outputs.environment} PC_CONFIG_FILES=${configFile} process-compose ${config.cli.outputs.options} "$@"
48+
${config.cli.outputs.environment} PC_CONFIG_FILES=${configFile} ${if config.cli.postHook == "" then "exec " else ""}process-compose ${config.cli.outputs.options} "$@"
4949
5050
${config.cli.postHook}
5151
'';

0 commit comments

Comments
 (0)