Skip to content

Commit

Permalink
use Replace instead of ReplaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski authored and wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf committed Oct 16, 2021
1 parent 7485e7b commit 29a528d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 29a528d

Please sign in to comment.