diff --git a/dynmotd_scripts/04filesystem b/dynmotd_scripts/04filesystem index 09bf851..de1220d 100755 --- a/dynmotd_scripts/04filesystem +++ b/dynmotd_scripts/04filesystem @@ -45,7 +45,8 @@ if [ $(which zpool) ]; then PART_NAME=$(df -T | grep zfs | sed -n "${LINE},${LINE}p" | awk '{print $1}') DISK_USAGE=$(df -T | grep zfs | sed -n "${LINE},${LINE}p" | awk '{print $6}') printf '%b' "\n${MAGENTA}+ ${WHITEB}${PART_NAME}${RESET} [ ${DISK_USAGE} ] " - (( LINE++ )) + LINE=$((LINE+1)) + # Bash ONLY: (( LINE++ )) done fi ### FI ZFS