diff --git a/generator/main.go b/generator/main.go index c198192..2a22277 100644 --- a/generator/main.go +++ b/generator/main.go @@ -75,7 +75,11 @@ func extractFile(file string, dirname string) (err error) { prefix = header.Name continue } - filename := path.Join(dirname, strings.TrimPrefix(header.Name, prefix)) + realname := strings.TrimPrefix(header.Name, prefix) + if strings.HasPrefix(realname, "generator") { + continue + } + filename := path.Join(dirname, realname) if header.Typeflag == tar.TypeDir { if err = os.MkdirAll(filename, 0755); err != nil { return