fix: more robust length check

This commit is contained in:
decentral1se 2021-08-29 14:13:07 +02:00
parent 547f785da5
commit 45e2442e83
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -89,7 +89,7 @@ var appCpCommand = &cli.Command{
logrus.Fatal(err)
}
if len(containers) > 1 {
if len(containers) != 1 {
logrus.Fatalf("expected 1 container but got %v", len(containers))
}
container := containers[0]