From fbbeec5a2e5845e488100da3885dc630fa3468fe Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 2 Aug 2021 21:42:22 -0400 Subject: [PATCH] use Replace instead of ReplaceAll --- docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker.go b/docker.go index ed46d96d..08dff980 100644 --- a/docker.go +++ b/docker.go @@ -110,7 +110,7 @@ func (p Plugin) Exec() error { raw, err := cmd.CombinedOutput() if err != nil { out := string(raw) - out = strings.ReplaceAll(out, "WARNING! Using --password via the CLI is insecure. Use --password-stdin.", "") + out = strings.Replace(out, "WARNING! Using --password via the CLI is insecure. Use --password-stdin.", "", -1) fmt.Println(out) return fmt.Errorf("Error authenticating: exit status 1") }