aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-03-29 17:56:24 +0200
committerRasmus Steinke <rasi@xssn.at>2016-03-29 17:56:24 +0200
commit10455703b103ecb54f3de185ed663a383e836e71 (patch)
treec617440ca1e8e0baa83a979c386fcbc248fd3a58
parentc810c4f4a946c48e09aa704774ef283446d29794 (diff)
downloadrofi-pass-10455703b103ecb54f3de185ed663a383e836e71.tar.gz
Handle quoted arguments. Should fix #33
-rwxr-xr-xrofi-pass4
1 files changed, 2 insertions, 2 deletions
diff --git a/rofi-pass b/rofi-pass
index 5a64425..628c9a7 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -253,7 +253,7 @@ else unset helptext; mainMenu; fi
typeMenu () {
checkIfPass
- typefield=$(echo -e "< Return\n---\npassword\n$(pass "${selected_password}" | grep -P ':[\t ]' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ")
+ typefield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep -P ':[\t ]' | awk -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 ]' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to copy > ")
if [[ $copyfield == "" ]]; then exit;
elif [[ $copyfield == "password" ]]; then copyPass;
elif [[ $copyfield == "< Return" ]]; then mainMenu;