Skip to content

Commit

Permalink
Merge pull request #73 from vitessio/cross-platform-find
Browse files Browse the repository at this point in the history
fix copy-paste between shell testing and go testing
  • Loading branch information
frouioui authored Jan 24, 2024
2 parents 9ca16b4 + 25eabe8 commit a3bd3d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func NewContext(ctx context.Context, name string, arg ...string) *cmd {
// FindRegexpExtended returns a slice of arguments for doing a `find` command
// using extended regular expressions in a cross-platform-friendly manner.
func FindRegexpExtended(path string, expressions ...string) (args []string) {
args = []string{path}
args = []string{"find", path}
if globalRegexpOpt != "" {
args = []string{globalRegexpOpt, path}
args = []string{"find", globalRegexpOpt, path}
}

if len(regexpTypeOpt) > 0 {
Expand Down

0 comments on commit a3bd3d3

Please sign in to comment.