fix for single-device case

This commit is contained in:
Eric House 2016-06-26 14:54:01 -07:00
parent 3651137016
commit 94dadd4ca3

View file

@ -44,13 +44,12 @@ setSerial() {
listSerials
COUNT=${#SERIALS[@]}
echo "COUNT: $COUNT"
case $COUNT in
0)
usage "no devices found"
;;
1)
SERIAL="-s $SERIALS[0]"
SERIAL="-s ${SERIALS[0]}"
;;
*)
setSerial