diff options
| author | Tobias Wiese <tobias@tobiaswiese.com> | 2021-09-12 04:27:02 +0200 |
|---|---|---|
| committer | Tobias Wiese <tobias@tobiaswiese.com> | 2021-09-12 04:27:02 +0200 |
| commit | ff5186ae098f4c29a4c2490f02e61fc1bd9e01ca (patch) | |
| tree | ca08fab2f98772aced67106616ca335d2c437dd4 /check_systemd | |
| parent | 46fcb1abce49b1494cec31e273cb5f74d22e7b85 (diff) | |
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 <tobias@tobiaswiese.com>
Diffstat (limited to 'check_systemd')
| -rwxr-xr-x | check_systemd | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
