From 612d957f3ff8d6fa4a4e68f5bb0674e9570443b1 Mon Sep 17 00:00:00 2001 From: Adrian Gierakowski Date: Wed, 5 Nov 2025 13:04:32 +0100 Subject: [PATCH] feat: use exec in wrapper if postHook is empty avoid unnecesary bash process and improves signal handling --- nix/process-compose/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/process-compose/default.nix b/nix/process-compose/default.nix index 50e7951..8ce07d9 100644 --- a/nix/process-compose/default.nix +++ b/nix/process-compose/default.nix @@ -45,7 +45,7 @@ in ${config.cli.preHook} # 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. - ${config.cli.outputs.environment} PC_CONFIG_FILES=${configFile} process-compose ${config.cli.outputs.options} "$@" + ${config.cli.outputs.environment} PC_CONFIG_FILES=${configFile} ${if config.cli.postHook == "" then "exec " else ""}process-compose ${config.cli.outputs.options} "$@" ${config.cli.postHook} '';