mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Check error when copying from pod
This commit is contained in:
parent
3ba70b9b5e
commit
12066b069c
@ -300,7 +300,8 @@ func (o *CopyOptions) copyFromPod(src, dest fileSpec) error {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer outStream.Close()
|
defer outStream.Close()
|
||||||
o.execute(options)
|
err := o.execute(options)
|
||||||
|
cmdutil.CheckErr(err)
|
||||||
}()
|
}()
|
||||||
prefix := getPrefix(src.File)
|
prefix := getPrefix(src.File)
|
||||||
prefix = path.Clean(prefix)
|
prefix = path.Clean(prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user