From 4efbf0e0902368784ee11f95bf3ce15d1f729ead Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 9 Jan 2017 23:38:45 +0100 Subject: [PATCH] systemd: minor activation output fix --- modules/systemd.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/systemd.nix b/modules/systemd.nix index cead653a5..450d8f9f5 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -103,20 +103,20 @@ in local sugg="" if [[ -n "''${toRestart[@]}" ]] ; then - sugg="$sugg\nsystemctl --user restart ''${toRestart[@]}" + sugg="''${sugg}systemctl --user restart ''${toRestart[@]}\n" fi if [[ -n "''${toStop[@]}" ]] ; then - sugg="$sugg\nsystemctl --user stop ''${toStop[@]}" + sugg="''${sugg}systemctl --user stop ''${toStop[@]}\n" fi if [[ -n "''${toStart[@]}" ]] ; then - sugg="$sugg\nsystemctl --user start ''${toStart[@]}" + sugg="''${sugg}systemctl --user start ''${toStart[@]}\n" fi if [[ -n "$sugg" ]] ; then echo "Suggested commands:" - echo -e "$sugg" + echo -n -e "$sugg" fi }