Merge pull request #77010 from soltysh/fix_cp

Check error when copying from pod
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-24 14:21:31 -07:00 committed by GitHub
commit 36e06bbb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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)