commit | 4a1cfc2e5e8865fa9bbcb159bf1228c38d83574f | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sat Apr 11 13:54:46 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sat Apr 11 13:54:46 2015 +0900 |
tree | a702383c79ad0a8b9c92a030fcbf56ce1c577fd6 | |
parent | 2216dd6b5ef9b0c6dee7c287fad06c3de707ed1f [diff] [blame] |
Do not regard rules which start with dot as the first rule
diff --git a/exec.go b/exec.go index 87da560..2092cb3 100644 --- a/exec.go +++ b/exec.go
@@ -402,7 +402,7 @@ ex.rules[output] = r } else { ex.rules[output] = rule - if ex.firstRule == nil && !isSuffixRule { + if ex.firstRule == nil && !strings.HasPrefix(output, ".") { ex.firstRule = rule } }