Merge pull request #77010 from soltysh/fix_cp

Check error when copying from pod
This commit is contained in:
Kubernetes Prow Robot
2019-04-24 14:21:31 -07:00
committed by GitHub

View File

@@ -300,7 +300,8 @@ func (o *CopyOptions) copyFromPod(src, dest fileSpec) error {
go func() {
defer outStream.Close()
o.execute(options)
err := o.execute(options)
cmdutil.CheckErr(err)
}()
prefix := getPrefix(src.File)
prefix = path.Clean(prefix)