Skip to content

Commit 5fe57c6

Browse files
Remove double kubectl from output
1 parent 15bb54c commit 5fe57c6

File tree

1 file changed

+2
-2
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/exec

1 file changed

+2
-2
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/exec/exec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ func (p *ExecOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, argsIn []s
174174
if argsLenAtDash > -1 {
175175
p.Command = argsIn[argsLenAtDash:]
176176
} else if len(argsIn) > 1 {
177-
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead.\n")
177+
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.\n")
178178
p.Command = argsIn[1:]
179179
} else if len(argsIn) > 0 && len(p.FilenameOptions.Filenames) != 0 {
180-
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead.\n")
180+
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.\n")
181181
p.Command = argsIn[0:]
182182
p.ResourceName = ""
183183
}

0 commit comments

Comments
 (0)