Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.

Commit

Permalink
fix doublestar.Glob
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Oct 28, 2021
1 parent a36120f commit 6b0dbf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions action_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ func httpAction(c *cli.Context) error {
pattern = c.String("input")
}

fsys := os.DirFS("")
matches, err := doublestar.Glob(fsys, pattern)
matches, err := doublestar.Glob(os.DirFS("."), pattern)
if err != nil {
return err
}
Expand Down
3 changes: 1 addition & 2 deletions action_httptest.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ func httptestAction(c *cli.Context) error {
if pattern == "" {
pattern = c.String("input")
}
fsys := os.DirFS("")
matches, err := doublestar.Glob(fsys, pattern)
matches, err := doublestar.Glob(os.DirFS("."), pattern)
if err != nil {
return err
}
Expand Down

0 comments on commit 6b0dbf9

Please sign in to comment.