Skip to content

Commit

Permalink
profile.sh: Update failed units' output
Browse files Browse the repository at this point in the history
Add option `--plain` to omit the leading bullet circles in the
output of `systemctl list-units`.
The bullet circles started being in the output of `systemctl list-units`
since systemd v246.
  • Loading branch information
kelvinfan001 committed Sep 30, 2020
1 parent dc03306 commit 6636b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/share/console-login-helper-messages/profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Only print for interactive shells.
if [[ $- == *i* ]]; then
FAILED=$(systemctl list-units --state=failed --no-legend)
FAILED=$(systemctl list-units --state=failed --no-legend --plain)

if [[ ! -z "${FAILED}" ]]; then
COUNT=$(wc -l <<<"${FAILED}")
Expand Down

0 comments on commit 6636b68

Please sign in to comment.