Skip to content

Commit

Permalink
fix: unifiedOverlays should be assigned if no conflicts found.
Browse files Browse the repository at this point in the history
[NO TESTS NEEDED]

Signed-off-by: flouthoc <[email protected]>
  • Loading branch information
flouthoc committed Aug 17, 2021
1 parent 3cee855 commit 1f632f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/specgen/generate/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func finalizeMounts(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.Ru
return nil, nil, nil, err
}
cleanDestination := filepath.Clean(v.Destination)
if _, ok := unifiedOverlays[cleanDestination]; ok {
if _, ok := unifiedOverlays[cleanDestination]; !ok {
unifiedOverlays[cleanDestination] = v
}
}
Expand Down

0 comments on commit 1f632f3

Please sign in to comment.