From 41d0dbf8cae7e713687e3fcdcb2c769f27934a26 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 10 Sep 2016 17:19:45 +0200 Subject: [PATCH] exclude first line when generating array --- rofi-pass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rofi-pass b/rofi-pass index 8421f46..476732d 100755 --- a/rofi-pass +++ b/rofi-pass @@ -252,7 +252,8 @@ Run ${default_do} with Enter. For more help hit # generate Array of fields password_temp=$(PASSWORD_STORE_DIR="${root}" pass "$selected_password") password="${password_temp%%$'\n'*}" - pass_key_value=$(echo "${password_temp}" | awk '$1 ~ /:$/{$1=$1;print}') + fields="$(echo "${password_temp}" | tail -n +2)" + pass_key_value=$(echo "${fields}" | awk '$1 ~ /:$/{$1=$1;print}') declare -A stuff stuff["pass"]=${password} if [[ -n $pass_key_value ]]; then