fix: more robust length check
This commit is contained in:
parent
547f785da5
commit
45e2442e83
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user