wpass: fix duplicate password fields being incorrectly filled

This commit is contained in:
Leonardo Eugênio 2025-06-25 13:07:14 -03:00
parent 211b5b41a9
commit 412388a5a2
No known key found for this signature in database
GPG key ID: 2F8F21CE8721456B
2 changed files with 2 additions and 1 deletions

View file

@ -74,6 +74,7 @@
];
wpass = [
wdmenu
ripgrep
fd
myPass
sd

View file

@ -29,7 +29,7 @@ main() {
test -n "$entry" || exit 0
username=`pass show "$entry" 2>/dev/null | perl -ne 'print $2 if /^(login|user|email): (.*)/'`
username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'`
password=`pass show "$entry" 2>/dev/null | head -n 1`
otp=`pass otp "$entry" 2>/dev/null` || true