mirror of
https://github.com/octoleo/restic.git
synced 2024-11-21 20:35:12 +00:00
key: return an error if subcommand is unknown
This commit is contained in:
parent
e44e4b00a6
commit
765729d009
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user