wpass: don't error out on entries without username
This commit is contained in:
parent
6f074851e5
commit
1eca28f39c
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ main() {
|
|||
|
||||
test -n "$entry" || exit 0
|
||||
|
||||
username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'`
|
||||
password=`pass show "$entry" 2>/dev/null | head -n 1`
|
||||
username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'` || true
|
||||
password=`pass show "$entry" 2>/dev/null | head -n 1` || true
|
||||
otp=`pass otp "$entry" 2>/dev/null` || true
|
||||
|
||||
action="$(print_actions_for_entry | wdmenu -p Action)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue