pass_typer: Don't use borg encryption passphrases

This commit is contained in:
Adam Goldsmith 2023-09-08 13:35:21 -04:00
parent d89209a1f3
commit 9fce2cc890

View File

@ -82,7 +82,9 @@ class ServerMatch:
print("Candidate globs:") print("Candidate globs:")
for glob in self.to_globs(): for glob in self.to_globs():
print(glob) print(glob)
yield from PASSWORD_STORE.glob(str(glob)) for path in PASSWORD_STORE.glob(str(glob)):
if not path.parent.match("**/borg"):
yield path
def __str__(self) -> str: def __str__(self) -> str:
folder = self.folder if self.folder is not None else '**' folder = self.folder if self.folder is not None else '**'