diff --git a/pkg/app/master/command/build/image.go b/pkg/app/master/command/build/image.go index 5b759f35..8df87ff9 100644 --- a/pkg/app/master/command/build/image.go +++ b/pkg/app/master/command/build/image.go @@ -430,7 +430,7 @@ func buildOutputImage( hasData = true } else { dataDir := filepath.Join(imageInspector.ArtifactLocation, "files") - if fsutil.Exists(dataTar) && fsutil.IsDir(dataDir) { + if fsutil.Exists(dataDir) && fsutil.IsDir(dataDir) { layerInfo := imagebuilder.LayerDataInfo{ Type: imagebuilder.DirSource, Source: dataDir,