aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-11-15 04:49:10 +0100
committerRasmus Steinke <rasi@xssn.at>2015-11-15 04:49:10 +0100
commit6269688435bab40e3c19695765a2c51178d65689 (patch)
tree4bf8fe06e9806063a4a02cf96f18ab09d79dfbc3
parent6a3db43ff09a52da9729a9678341f9c59ceb85b3 (diff)
downloadrofi-pass-6269688435bab40e3c19695765a2c51178d65689.tar.gz
simplify detection of fieldnames
-rwxr-xr-xrofi-pass2
1 files changed, 1 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index 31834fa..143d7b2 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -238,7 +238,7 @@ typeMenu () {
copyMenu () {
checkIfPass
- copyfield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | _rofi -dmenu -p "Choose Field to type > ")
+ copyfield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep ': ' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ")
if [[ $copyfield == "" ]]; then exit;
elif [[ $copyfield == "password" ]]; then copyPass;
elif [[ $copyfield == "< Return" ]]; then mainMenu;