From 81e07bb8a275b501522e21c5afe5480481e00635 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Fri, 29 Apr 2016 21:18:04 +0200 Subject: [PATCH] explicitly depend on gawk --- rofi-pass | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/rofi-pass b/rofi-pass index 51d3023..a858c02 100755 --- a/rofi-pass +++ b/rofi-pass @@ -2,7 +2,7 @@ # rofi-pass # (c) 2015 Rasmus Steinke -basecommand=$(echo "$0" | awk '{ print $1 }') +basecommand=$(echo "$0" | gawk '{ print $1 }') # get all password files and create an array @@ -64,7 +64,7 @@ autopass () { openURL () { checkIfPass - $BROWSER "$(pass "$selected_password" | grep "${URL_field}: " | awk '{sub(/:/,"")}{print $2}1' | head -1)"; exit; + $BROWSER "$(pass "$selected_password" | grep "${URL_field}: " | gawk '{sub(/:/,"")}{print $2}1' | head -1)"; exit; } typeUser () { @@ -199,8 +199,8 @@ ${line3}" password=$(echo "${password_temp}" | head -1) declare -A stuff while read LINE; do - _id=$(echo -e "${LINE}" | awk -F ':[[:space:]]*' '{print $1}') - _val=$(echo -e "${LINE}" | awk '{sub(/:/,"")}{for (i=2; i ") + typefield=$(echo -e "< Return\n---\npassword\n$(pass "${selected_password}" | grep -P ':[\t ]' | gawk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") if [[ $typefield == "" ]]; then exit; elif [[ $typefield == "password" ]]; then typePass; elif [[ $typefield == "< Return" ]]; then mainMenu; @@ -263,7 +263,7 @@ typeMenu () { copyMenu () { checkIfPass - copyfield=$(echo -e "< Return\n---\npassword\n$(pass "${selected_password}" | grep -P ':[\t ]' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to copy > ") + copyfield=$(echo -e "< Return\n---\npassword\n$(pass "${selected_password}" | grep -P ':[\t ]' | gawk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to copy > ") if [[ $copyfield == "" ]]; then exit; elif [[ $copyfield == "password" ]]; then copyPass; elif [[ $copyfield == "< Return" ]]; then mainMenu; @@ -292,14 +292,14 @@ showEntry () { declare -A stuff while read LINE; do - _id=$(echo -e "${LINE}" | awk -F ':[[:space:]]*' '{print $1}') - _val=$(echo -e "${LINE}" | awk '{sub(/:/,"")}{for (i=2; i