fix ramiening devices

This commit is contained in:
rootzoll
2025-01-05 17:46:12 +01:00
parent 09a3e5b3a6
commit db152be5b6

View File

@@ -279,8 +279,10 @@ if [ "$1" = "layout" ]; then
fi
# count remaining devices
remainingDevices=$(echo "${listOfDevices}" | wc -l)
echo "# ${listOfDevices}"
remainingDevices=0
if [ ${#listOfDevices} -gt 0 ]; then
remainingDevices=$(echo "${listOfDevices}" | wc -l)
fi
# output the result
echo "storageDevice='${storageDevice}'"