honor --min-devs flag

This commit is contained in:
Eric House 2012-10-27 08:15:07 -07:00
parent b097e0825e
commit 4ea8569abc

View file

@ -79,6 +79,9 @@ function pick_ndevs() {
elif [ $RNUM -gt 75 -a $MAXDEVS -ge 3 ]; then
NDEVS=3
fi
if [ -n "$MINDEVS" -a "$NDEVS" -lt "$MINDEVS" ]; then
NDEVS=$MINDEVS
fi
echo $NDEVS
}