pass_typer: Append .gpg suffix, instead of replacing
This commit is contained in:
parent
ca7fb74daa
commit
afd922caa1
@ -43,7 +43,7 @@ def get_password(password_name: str) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def select_and_type(server_name: Path) -> None:
|
def select_and_type(server_name: Path) -> None:
|
||||||
path = ("servers" / server_name).with_suffix(".gpg")
|
path = ("servers" / server_name).with_name(server_name.name + ".gpg")
|
||||||
files = chain(
|
files = chain(
|
||||||
PASSWORD_STORE.glob(str(path)),
|
PASSWORD_STORE.glob(str(path)),
|
||||||
PASSWORD_STORE.glob(str(path.with_name("*@" + path.name))),
|
PASSWORD_STORE.glob(str(path.with_name("*@" + path.name))),
|
||||||
|
Loading…
Reference in New Issue
Block a user