fix warnings

This commit is contained in:
rootzoll
2025-01-07 20:51:00 +01:00
parent 02436f642d
commit 7d89a367c5

View File

@@ -385,24 +385,24 @@ if [ "$1" = "status" ]; then
# STORAGE # STORAGE
if [ ${#storageDevice} -gt 0 ]; then if [ ${#storageDevice} -gt 0 ]; then
if [ ${storageSizeGB} -lt $((storageFullMinGB - 1)) ]; then if [ ${storageSizeGB} -lt $((storageFullMinGB - 1)) ]; then
echo "storageWarning='only-pruned'" storageWarning='only-pruned'
fi fi
if [ ${storageSizeGB} -lt $((storagePrunedMinGB - 1)) ]; then if [ ${storageSizeGB} -lt $((storagePrunedMinGB - 1)) ]; then
echo "storageWarning='too-small'" storageWarning='too-small'
fi fi
fi fi
# SYSTEM # SYSTEM
if [ ${#systemDevice} -gt 0 ]; then if [ ${#systemDevice} -gt 0 ]; then
if [ ${systemSizeGB} -lt $((systemMinGB - 1)) ]; then if [ ${systemSizeGB} -lt $((systemMinGB - 1)) ]; then
echo "systemWarning='too-small'" systemWarning='too-small'
fi fi
fi fi
# DATA # DATA
if [ ${#dataDevice} -gt 0 ]; then if [ ${#dataDevice} -gt 0 ]; then
if [ ${dataSizeGB} -lt $((dataMinGB - 1)) ]; then if [ ${dataSizeGB} -lt $((dataMinGB - 1)) ]; then
echo "dataWarning='too-small'" dataWarning='too-small'
fi fi
fi fi