mirror of
https://github.com/restic/restic.git
synced 2026-05-31 22:29:43 +00:00
d9b9bbd4a8
As `restic key add` uses the same `ReadPasswordTwice()` as the rest of restic, it is sensitive to the environment variable RESTIC_PASSWORD or --password-file= override. When asking for the new key, temporary remove these 2 overrides, forcing the password to be asked.