Skip to content

Commit

Permalink
Fix some bugs for bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
KCarretto committed Feb 5, 2022
1 parent f0618b2 commit 584f69c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bundle/dropper.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
ctx := context.Background()
bundle := assetslib.TarGZBundler{
Buffer: bytes.NewBuffer(Assets),
Buffer: bytes.NewBuffer(assets), // See assets.gen.go
}
fs, err := bundle.FileSystem()
Expand Down
4 changes: 4 additions & 0 deletions cmd/bundle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func main() {
return err
}

if info.IsDir() {
return nil
}

f, err := os.Open(path)
if err != nil {
return err
Expand Down

0 comments on commit 584f69c

Please sign in to comment.