_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'" ]
This commit is contained in:
Jan Tojnar 2024-07-13 08:14:10 +02:00
parent 9ecab00bf4
commit 3c78e0ce04

View File

@ -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.