From 1a59d16702839afa619a99269e5751d0862416e6 Mon Sep 17 00:00:00 2001 From: "Kim B. Heino" Date: Wed, 7 Oct 2020 14:10:13 +0300 Subject: [PATCH] df: fix shellcheck error --- plugins/df | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/df b/plugins/df index f5d5ced..ee378ec 100644 --- a/plugins/df +++ b/plugins/df @@ -7,7 +7,7 @@ graph_info This graph shows disk usage on the machine." for PART in $(df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | sed '/\/[a-z0-9]*$/!d;s/.* \([a-z0-9\/]\{1,\}\)$/\1/g') do PINFO=$(df -P "$PART" | tail -1); - PNAME=$(clean_fieldname $(echo "$PINFO" | cut -d " " -f 1)) + PNAME=$(clean_fieldname "$(echo "$PINFO" | cut -d " " -f 1)") echo "$PNAME.label $PART" echo "$PNAME.info $PNAME -> $PART" echo "$PNAME.warning 92" @@ -18,7 +18,7 @@ fetch_df() { for PART in $(df -PT | grep '^/' | grep -vwE "$DF_IGNORE_FILESYSTEM_REGEX" | sed '/\/[a-z0-9]*$/!d;s/.* \([a-z0-9\/]\{1,\}\)$/\1/g') do PINFO=$(df -P "$PART" | tail -1); - PNAME=$(clean_fieldname $(echo "$PINFO" | cut -d " " -f 1)) + PNAME=$(clean_fieldname "$(echo "$PINFO" | cut -d " " -f 1)") echo "$PNAME.value" "$(echo "$PINFO" | sed -e 's/\%//g' -e 's/ */ /g' | cut -d " " -f 5)" done }