mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
fix ramiening devices
This commit is contained in:
@@ -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}'"
|
||||
|
Reference in New Issue
Block a user