fixup svd: add set -e to job script

This matches the behavior of makeJobScript in nixos/lib/systemd-lib.nix.
This commit is contained in:
Zhaofeng Li 2022-09-24 21:05:19 +00:00
parent 2f92f24624
commit 5278b3d2d7

View file

@ -75,7 +75,10 @@ let
};
config = {
command = lib.mkIf (config.script != "")
(toString (pkgs.writeShellScript "${name}-script.sh" config.script));
(toString (pkgs.writeShellScript "${name}-script.sh" ''
set -e
${config.script}
''));
environment.PATH = lib.mkDefault (lib.makeBinPath config.path);
};