hopefully fixed tab/spacing code

This commit is contained in:
Rasmus Steinke 2015-08-13 20:05:01 +02:00
parent 54bead78eb
commit af09274ef7

View File

@ -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