mirror of
https://github.com/restic/restic.git
synced 2025-05-22 11:08:20 +00:00

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.