Skip to content

Commit

Permalink
fix: filter non-directories when listing dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Padilla authored and toby committed Apr 12, 2022
1 parent 208a1bb commit d7e29a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ func listDbs(cmd *cobra.Command, args []string) error {
return err
}
for _, d := range dbs {
fmt.Println("@" + d.Name())
if d.IsDir() {
fmt.Println("@" + d.Name())
}
}
return nil
}
Expand Down

0 comments on commit d7e29a8

Please sign in to comment.