From 3c78e0ce042ee74dc75375dfd9199d4194511fb6 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 13 Jul 2024 08:14:10 +0200 Subject: [PATCH] _experimental-update-script-combinators.sequence: Terminate on failure Before: nix-repl> (_experimental-update-script-combinators.sequence [["false"] ["echo" "work"]]).command [ "sh" "-c" "'false';'echo' 'work'" ] After: nix-repl> (_experimental-update-script-combinators.sequence [["false"] ["echo" "work"]]).command [ "sh" "-ec" "'false';'echo' 'work'" ] --- pkgs/common-updater/combinators.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/common-updater/combinators.nix b/pkgs/common-updater/combinators.nix index d60a6e742715..dadbb1e81ca4 100644 --- a/pkgs/common-updater/combinators.nix +++ b/pkgs/common-updater/combinators.nix @@ -89,7 +89,7 @@ let in [ "sh" - "-c" + "-ec" (lib.concatMapStringsSep ";" escapeShellArgs' extracted.commands) # We need paths as separate arguments so that update.nix can ensure they refer to the local directory # rather than a store path.