disks: try something

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-23 20:39:20 +02:00
parent 555067be24
commit 7a2e2e2258

View File

@ -339,7 +339,7 @@ function nondtModel() {
[ $((${USBMAXIDX} - ${USBMINIDX})) -lt 6 ] && USBMAXIDX=$((${USBMINIDX} + 6))
fi
if [ "${2}" = "external" ]; then
MAXDISKS=$((${MAXDISKS} - ${USBMAXIDX}))
MAXDISKS=$((${MAXDISKS} - ${USBMINIDX}))
else
[ $((${USBMAXIDX} + 1)) -gt ${MAXDISKS} ] && MAXDISKS=$((${USBMAXIDX} + 1))
fi