Added the name of the login alongside user

This commit is contained in:
Marco Raber 2020-08-24 16:29:40 +02:00
parent f47346b5c0
commit 7f2ca46ff2

View File

@ -17,8 +17,9 @@ for row in $(echo "${json}" | jq -r '.[] | @base64'); do
# echo $(_jq '.login.username') # echo $(_jq '.login.username')
user="$(echo $(_jq '.login.username'))" user="$(echo $(_jq '.login.username'))"
usersdmenu="$usersdmenu$user\n" #array used for the choosing phase in dmenu name="$(echo $(_jq '.name'))"
userssplit="$userssplit$user," #array used for extracting the password from the json usersdmenu="$usersdmenu$user - $name\n" #array used for the choosing phase in dmenu
userssplit="$userssplit$user - $name," #array used for extracting the password from the json
password="$(_jq '.login.password')" password="$(_jq '.login.password')"
passwords="$passwords$password," passwords="$passwords$password,"