From a9476f50fdbe656f601c9616112f2ea3f8b5d7a7 Mon Sep 17 00:00:00 2001 From: Tomaz Solc Date: Thu, 27 Oct 2016 17:51:33 +0200 Subject: [PATCH] systemd_units: fix indent --- plugins/system/systemd_units | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/plugins/system/systemd_units b/plugins/system/systemd_units index 34563fd3..dd336dd7 100755 --- a/plugins/system/systemd_units +++ b/plugins/system/systemd_units @@ -61,15 +61,14 @@ EOF fetch () { tmp=$(systemctl --no-pager --no-legend --all | awk '{print $1, $3}') - for state in \ - $states ; do - echo -n "$state.value " - echo "$tmp" | grep -c "$state$" - extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1) - if [ -n "$extinfo" ]; then - echo "$state.extinfo" $extinfo - fi -done + for state in $states ; do + echo -n "$state.value " + echo "$tmp" | grep -c "$state$" + extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1) + if [ -n "$extinfo" ]; then + echo "$state.extinfo" $extinfo + fi + done } case $1 in