remove strange while loop

This commit is contained in:
Rasmus Steinke 2016-07-28 19:44:27 +02:00
parent ecc2af0c71
commit 098d3d8417

View File

@ -216,7 +216,7 @@ Type field of entry with <span color='$help_color'>Enter</span>. For more help h
# generate Array of fields
password_temp=$(PASSWORD_STORE_DIR="${root}" pass "$selected_password")
password="${password_temp%%$'\n'*}"
pass_key_value=$(echo "${password_temp}" | tail -n+2 | grep ': ' | while read line; do echo "${line%%: *}: ${line#* }"; done)
pass_key_value=$(echo "${password_temp}" | tail -n+2 | grep ': ')
declare -A stuff
while read -r LINE; do
_id="${LINE%%: *}"