1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 09:28:32 +02:00

systemd: minor activation output fix

This commit is contained in:
Robert Helgesson 2017-01-09 23:38:45 +01:00
parent a578ea9527
commit 4efbf0e090
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -103,20 +103,20 @@ in
local sugg="" local sugg=""
if [[ -n "''${toRestart[@]}" ]] ; then if [[ -n "''${toRestart[@]}" ]] ; then
sugg="$sugg\nsystemctl --user restart ''${toRestart[@]}" sugg="''${sugg}systemctl --user restart ''${toRestart[@]}\n"
fi fi
if [[ -n "''${toStop[@]}" ]] ; then if [[ -n "''${toStop[@]}" ]] ; then
sugg="$sugg\nsystemctl --user stop ''${toStop[@]}" sugg="''${sugg}systemctl --user stop ''${toStop[@]}\n"
fi fi
if [[ -n "''${toStart[@]}" ]] ; then if [[ -n "''${toStart[@]}" ]] ; then
sugg="$sugg\nsystemctl --user start ''${toStart[@]}" sugg="''${sugg}systemctl --user start ''${toStart[@]}\n"
fi fi
if [[ -n "$sugg" ]] ; then if [[ -n "$sugg" ]] ; then
echo "Suggested commands:" echo "Suggested commands:"
echo -e "$sugg" echo -n -e "$sugg"
fi fi
} }