Skip to content

Commit

Permalink
Merge pull request #4663 from MichaelEischer/key-subcommand-bugfix
Browse files Browse the repository at this point in the history
key: return an error if subcommand is unknown
  • Loading branch information
MichaelEischer committed Jan 27, 2024
2 parents e44e4b0 + 765729d commit 248c144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/restic/cmd_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ func runKey(ctx context.Context, gopts GlobalOptions, opts KeyOptions, args []st
}

return changePassword(ctx, repo, gopts, opts.NewPasswordFile)
default:
return errors.Fatal("invalid operation")
}

return nil
}

func loadPasswordFromFile(pwdFile string) (string, error) {
Expand Down

0 comments on commit 248c144

Please sign in to comment.