Skip to content

Commit fccc432

Browse files
committed
fixup svd: add set -e to job script
This matches the behavior of makeJobScript in nixos/lib/systemd-lib.nix.
1 parent 04e9f29 commit fccc432

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/supervisord.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ let
7575
};
7676
config = {
7777
command = lib.mkIf (config.script != "")
78-
(toString (pkgs.writeShellScript "${name}-script.sh" config.script));
78+
(toString (pkgs.writeShellScript "${name}-script.sh" ''
79+
set -e
80+
${config.script}
81+
''));
7982

8083
environment.PATH = lib.mkDefault (lib.makeBinPath config.path);
8184
};

0 commit comments

Comments
 (0)