From cc4e8c1aaeab545a03ab13e8cde79e6b7f0e8ca0 Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Wed, 13 Dec 2017 21:05:44 +0100 Subject: [PATCH] fix password_fill using libsecret --- misc/userscripts/password_fill | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/userscripts/password_fill b/misc/userscripts/password_fill index 5f30a6bf6..8dba68c2b 100755 --- a/misc/userscripts/password_fill +++ b/misc/userscripts/password_fill @@ -283,8 +283,8 @@ secret_backend() { query_entries() { local domain="$1" while read -r line ; do - if [[ "$line" == "attribute.username ="* ]] ; then - files+=("$domain ${line#${BASH_REMATCH[0]}}") + if [[ "$line" == "attribute.username = "* ]] ; then + files+=("$domain ${line:21}") fi done < <( secret-tool search --unlock --all domain "$domain" 2>&1 ) }