forked from mirror/pkger
ignore .tmp stuff
This commit is contained in:
parent
e4d652a24e
commit
0167919fce
|
@ -3,6 +3,7 @@ package pkgutil
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/gobuffalo/here"
|
"github.com/gobuffalo/here"
|
||||||
"github.com/markbates/pkger/parser"
|
"github.com/markbates/pkger/parser"
|
||||||
|
@ -23,6 +24,9 @@ func Stuff(w io.Writer, c here.Info, decls parser.Decls) error {
|
||||||
|
|
||||||
for _, pf := range files {
|
for _, pf := range files {
|
||||||
err = func() error {
|
err = func() error {
|
||||||
|
if strings.HasSuffix(pf.Abs, ".tmp") {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
df, err := os.Open(pf.Abs)
|
df, err := os.Open(pf.Abs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue