From af09274ef7cde7861fd220884a1a0a59db8c7964 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Thu, 13 Aug 2015 20:05:01 +0200 Subject: [PATCH] hopefully fixed tab/spacing code --- rofi-pass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rofi-pass b/rofi-pass index d6ec003..6decb72 100755 --- a/rofi-pass +++ b/rofi-pass @@ -89,10 +89,10 @@ ${copy_name}: Copy Username, ${copy_pass}: Copy Password, ${copy_url}: Copy URL, declare -A stuff while read LINE; do - _id=$(echo "${LINE}" | awk -F':[[:space:]]*' '{print $1}') - _val=$(echo "${LINE}" | awk '{sub(/:/,"")}{print $2}1' | head -1) + _id=$(echo -e "${LINE}" | awk -F ':[[:space:]]*' '{print $1}') + _val=$(echo -e "${LINE}" | awk '{sub(/:/,"")}{print $2}1' | head -1) stuff["${_id}"]=${_val} - done < <(pass "${selected_password}" | tail -n+2 | grep ': ') + done < <(pass "${selected_password}" | tail -n+2 | grep -Ev ': |:\t' ) stuff["pass"]=${password} if [[ $rofi_exit -eq 11 ]]; then