fix flake in copy symlink

This commit is contained in:
Tejal Desai
2020-02-05 14:40:52 -08:00
parent 790ba99477
commit 2cd68d2e2f
5 changed files with 25 additions and 11 deletions
+3 -1
View File
@@ -575,7 +575,9 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) {
}
for _, p := range filesToSave {
logrus.Infof("Saving file %s for later use", p)
util.CopyFileOrSymlink(p, dstDir)
if err := util.CopyFileOrSymlink(p, dstDir); err != nil {
return nil, err
}
}
// Delete the filesystem