1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00

Merge pull request #4663 from MichaelEischer/key-subcommand-bugfix

key: return an error if subcommand is unknown
This commit is contained in:
Michael Eischer 2024-01-27 18:24:50 +01:00 committed by GitHub
commit 248c144f72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {