Skip to content

Commit 9910790

Browse files
committed
fix embedFS
k3s-io#12676 (comment) Signed-off-by: muicoder <[email protected]>
1 parent 77034e0 commit 9910790

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/util/bindata/embed.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func (b Bindata) Asset(name string) ([]byte, error) {
2222
func (b Bindata) AssetNames() []string {
2323
var assets []string
2424
fs.WalkDir(b.FS, ".", func(path string, entry fs.DirEntry, err error) error {
25+
if entry.IsDir() || path == filepath.Join(b.Prefix, ".empty") {
26+
return nil
27+
}
2528
if entry.Type().IsRegular() {
2629
assets = append(assets, strings.TrimPrefix(path, b.Prefix))
2730
}

0 commit comments

Comments
 (0)