diff --git a/README.md b/README.md index cf904c5..7b3806d 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ For more examples check: [Realize Examples](https://github.com/tockins/realize-e - -w test: status: true - method: gb test // support differents build tool + method: gb test // support different build tools generate: status: true install: diff --git a/realize/projects.go b/realize/projects.go index b11c0b2..3ee3ff3 100644 --- a/realize/projects.go +++ b/realize/projects.go @@ -364,10 +364,10 @@ func (p *Project) Validate(path string, fcheck bool) bool { // file check if fcheck { fi, err := os.Stat(path) - if !fi.IsDir() && ext(path) == "" { + if err != nil { return false } - if err != nil { + if !fi.IsDir() && ext(path) == "" { return false } if fi.Size() > 0 {