fix: catch multiple containers correctly
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-10-21 16:01:54 +02:00
parent a170e26e27
commit cdb76e7276
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 3 deletions

View File

@ -64,10 +64,10 @@ var appRunCommand = &cli.Command{
logrus.Fatal(err)
}
switch len(containers) {
case 0:
if len(containers) == 0 {
logrus.Fatalf("no containers matching '%s' found?", stackAndServiceName)
case 1:
}
if len(containers) > 1 {
logrus.Fatalf("expected 1 container matching '%s' but got %d", stackAndServiceName, len(containers))
}