Skip to content

Commit

Permalink
fix(mongodb): Fallback to mongo command if mongosh is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 5, 2023
1 parent b3118d6 commit 956f9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/dialect/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (db MongoDB) AuthenticationDatabase(c config.Global) string {

func (db MongoDB) ExecCommand(conf config.Exec) *command.Builder {
cmd := command.NewBuilder(
"mongosh",
command.Raw(`"$(which mongosh || which mongo)"`),
"--host="+conf.Host,
"--username="+conf.Username,
"--password="+conf.Password,
Expand Down

0 comments on commit 956f9da

Please sign in to comment.