Skip to content

Commit

Permalink
should check if the dataDir folder exits instead of checking dataTar …
Browse files Browse the repository at this point in the history
…file (#60)

Signed-off-by: Jie Xu <jie.xu@image-metrics.com>
Co-authored-by: Jie Xu <jie.xu@image-metrics.com>
  • Loading branch information
tsujie and jiexuim authored Oct 4, 2024
1 parent 381e64f commit c7c32c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/master/command/build/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7c32c0

Please sign in to comment.