mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
fix for single-device case
This commit is contained in:
parent
3651137016
commit
94dadd4ca3
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue