zpool_fragmentation: bash-lint

This commit is contained in:
Michael Grote 2021-10-01 11:01:43 +02:00
parent e79510f163
commit f2208bd01b

View file

@ -20,10 +20,10 @@ if [ "$1" = "config" ]; then
# https://superuser.com/questions/284187/bash-iterating-over-lines-in-a-variable
while read -r line; do
# setze label
echo $line | awk '{print $1".label " $1}'
echo "$line" | awk '{print $1".label " $1}'
# setze warn-limits
echo $line | awk '{print $1".warning " 50}'
echo $line | awk '{print $1".critical " 75}'
echo "$line" | awk '{print $1".warning " 50}'
echo "$line" | awk '{print $1".critical " 75}'
done <<< "$list"
# setze optionen
echo 'graph_title ZFS storage pool - fragmentation' # Titelzeile
@ -40,6 +40,6 @@ fi
while read -r line; do
# gebe wert aus
# <name>.value <wert>
echo $line | awk '{print $1".value " $7}'
echo "$line" | awk '{print $1".value " $7}'
done <<< "$list"
exit 0