Filter out blank lines.
This commit is contained in:
parent
2c3e5483e9
commit
03e389195c
@ -2,7 +2,6 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
home-manager,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -198,8 +197,10 @@ in
|
|||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
};
|
};
|
||||||
script = (lib.strings.concatStringsSep "\n" (check_commands ++ install_commands));
|
script = (
|
||||||
preStop = (lib.strings.concatStringsSep "\n" uninstall_commands);
|
lib.strings.concatStringsSep "\n" (filter (cmd: cmd != "") (check_commands ++ install_commands))
|
||||||
|
);
|
||||||
|
preStop = (lib.strings.concatStringsSep "\n" (filter (cmd: cmd != "") uninstall_commands));
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."install_out".text = config.systemd.services.me-install-file.script;
|
environment.etc."install_out".text = config.systemd.services.me-install-file.script;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user