clan-cli: secrets: treemft
This commit is contained in:
@@ -291,7 +291,7 @@ def collect_private_age_keys() -> Sequence[str]:
|
||||
try:
|
||||
contents = Path(key_path).read_text().strip()
|
||||
lines = contents.splitlines() # as in parse.go in age:
|
||||
private_age_keys.extend(l for l in lines if l and not l.startswith("#"))
|
||||
private_age_keys.extend(ln for ln in lines if ln and not ln.startswith("#"))
|
||||
except FileNotFoundError:
|
||||
return
|
||||
except Exception as ex:
|
||||
|
||||
Reference in New Issue
Block a user