diff --git a/pkg/packagekit/wix/service.go b/pkg/packagekit/wix/service.go index f6b42bc55..3335816d5 100644 --- a/pkg/packagekit/wix/service.go +++ b/pkg/packagekit/wix/service.go @@ -209,7 +209,7 @@ func NewService(matchString string, opts ...ServiceOpt) *Service { s := &Service{ matchString: matchString, - // one count for arm64 and ond for amd64 + // one count for arm64, one for amd64 expectedCount: 2, count: 0, serviceInstall: si, diff --git a/pkg/packagekit/wix/wix.go b/pkg/packagekit/wix/wix.go index d72dc3ddd..d92aa890a 100644 --- a/pkg/packagekit/wix/wix.go +++ b/pkg/packagekit/wix/wix.go @@ -244,15 +244,19 @@ func (wo *wixTool) addServices(ctx context.Context) error { continue } - if strings.Contains(line, "Directory") { + // the directory tag will like like "" + // so we just check for the first part of the string + if strings.Contains(line, "