Don't read password for generate, help or self-update

Fixes #2951.
This commit is contained in:
greatroar
2020-10-05 16:03:51 +02:00
parent a23d90d270
commit feedf0ebce
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
Bugfix: restic generate, help and self-update no longer check passwords
The commands `restic cache`, `generate`, `help` and `self-update` don't need
passwords, but they previously did run the RESTIC_PASSWORD_COMMAND (if set in
the environment), prompting users to authenticate for no reason. They now skip
running the password command.
https://github.com/restic/restic/issues/2951
https://github.com/restic/restic/pull/2987