Skip to content

Commit 9d89c1a

Browse files
Merge pull request #11 from Genymobile/dev/fix-adbserialport-with-one-device
Use len(adbserialport) >=1
2 parents 9685a34 + ed2104a commit 9d89c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func main() {
194194
for cptInstance := 0; cptInstance < len(recipesList); cptInstance++ {
195195
instanceName := fmt.Sprint("gminstance_bitrise_", cptInstance)
196196
wg.Add(1)
197-
if len(adbSerialPortList) > 1 {
197+
if len(adbSerialPortList) >= 1 {
198198
go startInstanceAndConnect(&wg, recipesList[cptInstance], instanceName, adbSerialPortList[cptInstance])
199199
} else {
200200
go startInstanceAndConnect(&wg, recipesList[cptInstance], instanceName, "")

0 commit comments

Comments
 (0)