From c2df7d8198896dbabab1f7eb07a6654a6f7804a4 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 17 Apr 2021 13:42:58 +0200 Subject: [PATCH] nix(fix): Avoid losing exit trap through subcommand in postgrest-with-all --- nix/withtools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/withtools.nix b/nix/withtools.nix index fde422aa4..c8e162175 100644 --- a/nix/withtools.nix +++ b/nix/withtools.nix @@ -45,7 +45,7 @@ let trap 'echo "Failed on ${pg.name}"' exit - ${withTmpDb pg} "$_arg_command" "''${_arg_leftovers[@]}" + (${withTmpDb pg} "$_arg_command" "''${_arg_leftovers[@]}") trap "" exit