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 committed Aug 3, 2021
1 parent b1d8698 commit fbbeec5
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 fbbeec5

Please sign in to comment.