Skip to content

Commit

Permalink
Merge pull request #1
Browse files Browse the repository at this point in the history
* fix bug not finding executables
  • Loading branch information
anytimesoon authored Mar 28, 2024
1 parent efc8035 commit c312c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ func findExecutables() {
err := filepath.WalkDir(viper.GetString("directories.executables"), func(path string, d fs.DirEntry, err error) error {
switch d.Name() {
case "pg_dump":
pathToDump = filepath.Join(viper.GetString("directories.executables"), path, "pg_dump")
pathToDump = filepath.Join(viper.GetString("directories.executables"), path)
case "pg_restore":
pathToRestore = filepath.Join(viper.GetString("directories.executables"), path, "pg_dump")
pathToRestore = filepath.Join(viper.GetString("directories.executables"), path)
default:

}
Expand Down

0 comments on commit c312c8f

Please sign in to comment.