forked from TrueCloudLab/restic
Merge pull request #4663 from MichaelEischer/key-subcommand-bugfix
key: return an error if subcommand is unknown
This commit is contained in:
commit
248c144f72
1 changed files with 2 additions and 2 deletions
|
@ -250,9 +250,9 @@ func runKey(ctx context.Context, gopts GlobalOptions, opts KeyOptions, args []st
|
||||||
}
|
}
|
||||||
|
|
||||||
return changePassword(ctx, repo, gopts, opts.NewPasswordFile)
|
return changePassword(ctx, repo, gopts, opts.NewPasswordFile)
|
||||||
|
default:
|
||||||
|
return errors.Fatal("invalid operation")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadPasswordFromFile(pwdFile string) (string, error) {
|
func loadPasswordFromFile(pwdFile string) (string, error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue