Skip to content

Commit

Permalink
Fix lookup location of files in dir bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 15, 2019
1 parent 3fe3b61 commit c7ad0da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/fyne/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ func dirBundle(pkg, prefix string, noheader bool, dirpath string) {

omitHeader := noheader
for _, file := range files {
filepath := file.Name()
if path.Ext(filepath) == ".go" {
filename := file.Name()
if path.Ext(filename) == ".go" {
continue
}

doBundle("", pkg, prefix, omitHeader, filepath)
doBundle("", pkg, prefix, omitHeader, path.Join(dirpath, filename))
omitHeader = true // only output header once at most
}
}
Expand Down

0 comments on commit c7ad0da

Please sign in to comment.