Browse Source

Hotfix: check the length of entrypoint before comparing.

Guillaume J. Charmes 12 năm trước cách đây
mục cha
commit
71d2ff4946
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      utils.go

+ 2 - 1
utils.go

@@ -20,7 +20,8 @@ func CompareConfig(a, b *Config) bool {
 	if len(a.Cmd) != len(b.Cmd) ||
 		len(a.Dns) != len(b.Dns) ||
 		len(a.Env) != len(b.Env) ||
-		len(a.PortSpecs) != len(b.PortSpecs) {
+		len(a.PortSpecs) != len(b.PortSpecs) ||
+		len(a.Entrypoint) != len(b.Entrypoint) {
 		return false
 	}