fix password_fill using libsecret

This commit is contained in:
Kevin Velghe 2017-12-13 21:05:44 +01:00
parent 922b1e8f10
commit cc4e8c1aae

View File

@ -283,8 +283,8 @@ secret_backend() {
query_entries() { query_entries() {
local domain="$1" local domain="$1"
while read -r line ; do while read -r line ; do
if [[ "$line" == "attribute.username ="* ]] ; then if [[ "$line" == "attribute.username = "* ]] ; then
files+=("$domain ${line#${BASH_REMATCH[0]}}") files+=("$domain ${line:21}")
fi fi
done < <( secret-tool search --unlock --all domain "$domain" 2>&1 ) done < <( secret-tool search --unlock --all domain "$domain" 2>&1 )
} }