motd: fix another alignment issue

This commit is contained in:
Rolf Leggewie
2025-07-05 09:48:42 +08:00
parent 8c888e3a27
commit 501f26e561

View File

@@ -139,7 +139,7 @@ echo -ne "\x1B[91m(read only rootfs)\x1B[0m"
fi
echo "" # fixed newline
a=0
display " storage/" "$storage_usage" "90" "1" "%" " of $storage_total" ; a=$((a+$?))
display " storage /" "$storage_usage" "90" "1" "%" " of $storage_total" ; a=$((a+$?))
display " storage temp" "$storage_temp" $HDD_TEMP_LIMIT "0" "°C" "" ; a=$((a+$?))
display " Battery" "$battery_percent" "20" "1" "%" "$status_battery_text" ; a=$((a+$?))
(( $a > 0 )) && echo "" # new line only if some value is displayed