From 3eb0d9c3ac6d5d28e7e68f33a2fba03406a5d5b7 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 bf2f986..9effe4c 100644 --- a/docker.go +++ b/docker.go @@ -123,7 +123,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") }