From ed2104a325de9097bad0f0a0a1490bc6e88e2398 Mon Sep 17 00:00:00 2001 From: Thomas Carpentier Date: Wed, 8 Jul 2020 15:55:14 +0200 Subject: [PATCH] Use len(adbserialport) >=1 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a8d0b57..ec9b158 100644 --- a/main.go +++ b/main.go @@ -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, "")