use Replace instead of ReplaceAll
This commit is contained in:
parent
b1d8698d1c
commit
fbbeec5a2e
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue