Skip to content

Commit fbbeec5

Browse files
committed
use Replace instead of ReplaceAll
1 parent b1d8698 commit fbbeec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (p Plugin) Exec() error {
110110
raw, err := cmd.CombinedOutput()
111111
if err != nil {
112112
out := string(raw)
113-
out = strings.ReplaceAll(out, "WARNING! Using --password via the CLI is insecure. Use --password-stdin.", "")
113+
out = strings.Replace(out, "WARNING! Using --password via the CLI is insecure. Use --password-stdin.", "", -1)
114114
fmt.Println(out)
115115
return fmt.Errorf("Error authenticating: exit status 1")
116116
}

0 commit comments

Comments
 (0)