From cf3b231974755891f275c8a911588e9a9795058d Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sun, 21 Jan 2018 14:35:08 -0500 Subject: [PATCH 1/2] Fix typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb214d8..458be35 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,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: From 34c7642ea30c1dcd136ea440e2fac7b6a4f6f8ce Mon Sep 17 00:00:00 2001 From: tmtx Date: Sat, 3 Feb 2018 20:56:37 +0200 Subject: [PATCH 2/2] Check error right away --- realize/projects.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {