Skip to content

Commit

Permalink
Merge pull request #11 from Genymobile/dev/fix-adbserialport-with-one…
Browse files Browse the repository at this point in the history
…-device

Use len(adbserialport) >=1
  • Loading branch information
thomascarpentier committed Jul 8, 2020
2 parents 9685a34 + ed2104a commit 9d89c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func main() {
for cptInstance := 0; cptInstance < len(recipesList); cptInstance++ {
instanceName := fmt.Sprint("gminstance_bitrise_", cptInstance)
wg.Add(1)
if len(adbSerialPortList) > 1 {
if len(adbSerialPortList) >= 1 {
go startInstanceAndConnect(&wg, recipesList[cptInstance], instanceName, adbSerialPortList[cptInstance])
} else {
go startInstanceAndConnect(&wg, recipesList[cptInstance], instanceName, "")
Expand Down

0 comments on commit 9d89c1a

Please sign in to comment.