aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremptyaitch <emptyaitch@gmail.com>2016-03-08 06:01:51 -0600
committeremptyaitch <emptyaitch@gmail.com>2016-03-08 06:01:51 -0600
commitf0b9d9af0ab5e2c4a23d1b7b9dc9291e06f97150 (patch)
tree53e805f8ec1ded31a28812338364d39533bcb1e4
parent08d4e37a2f02fadd8d22b54d2727cf3a86a4ae57 (diff)
downloadrofi-pass-f0b9d9af0ab5e2c4a23d1b7b9dc9291e06f97150.tar.gz
Added files via upload
Adding fix to handle *.gpg files with spaces
-rwxr-xr-xrofi-pass4
1 files changed, 2 insertions, 2 deletions
diff --git a/rofi-pass b/rofi-pass
index 9ccde1f..725cbba 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;