fix: ignore symlink errors
This commit is contained in:
parent
8c290994c1
commit
c44b71c996
1 changed files with 4 additions and 0 deletions
|
@ -384,6 +384,10 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe
|
||||||
|
|
||||||
// copy file data into tar writer
|
// copy file data into tar writer
|
||||||
if _, err := io.Copy(tw, f); err != nil {
|
if _, err := io.Copy(tw, f); err != nil {
|
||||||
|
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
|
||||||
|
logger.Warnf("Unable to copy link %s --> %s", fi.Name(), linkName)
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue