From ff5186ae098f4c29a4c2490f02e61fc1bd9e01ca Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Sun, 12 Sep 2021 04:27:02 +0200 Subject: fix failed unit list not printing unit name systemctl from Debian bullseye prints bullet points in front of unit names in the unit listing, even when ``--no-legend`` is given. The version of systmed from Debian buster didn't do that Signed-off-by: Tobias Wiese --- check_systemd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_systemd b/check_systemd index 9912c48..ce2af39 100755 --- a/check_systemd +++ b/check_systemd @@ -27,6 +27,7 @@ if [ "0" = "$FAILED_UNITS" ]; then exit 0 else printf "\nFailed units:\n" - systemctl list-units --failed --no-legend | awk '{print "- " $1;}' + systemctl list-units --failed --plain --no-legend \ + | awk '{print "- " $1;}' exit 2 fi -- cgit v1.2.3