Skip to content

Commit

Permalink
🐛 Fix dump filename panic
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 11, 2022
1 parent 80014f3 commit da46749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func preRun(cmd *cobra.Command, args []string) (err error) {
func run(cmd *cobra.Command, args []string) (err error) {
var filename string
if len(args) > 0 {
filename = args[1]
filename = args[0]
} else {
filename, err = Filename{
Dir: conf.Directory,
Expand Down

0 comments on commit da46749

Please sign in to comment.