From dcb5ebe28ac992cac5f56b2b68a8ab4f39146600 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 21 Oct 2024 13:38:29 -0400 Subject: [PATCH] refactor --- nix/process-compose/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/nix/process-compose/default.nix b/nix/process-compose/default.nix index 3d61756..0b37370 100644 --- a/nix/process-compose/default.nix +++ b/nix/process-compose/default.nix @@ -44,13 +44,9 @@ in text = '' ${config.cli.preHook} - run-process-compose () { - set -x - ${config.cli.outputs.environment} PC_CONFIG_FILES=${configFile} process-compose ${config.cli.outputs.options} "$@" - set +x - } - - run-process-compose "$@" + set -x + ${config.cli.outputs.environment} PC_CONFIG_FILES=${configFile} process-compose ${config.cli.outputs.options} "$@" + set +x ${config.cli.postHook} '';