Added files via upload

Adding fix to handle *.gpg files with spaces
This commit is contained in:
emptyaitch 2016-03-08 06:01:51 -06:00
parent 08d4e37a2f
commit f0b9d9af0a

View File

@ -253,7 +253,7 @@ else unset helptext; mainMenu; fi
typeMenu () { typeMenu () {
checkIfPass 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; if [[ $typefield == "" ]]; then exit;
elif [[ $typefield == "password" ]]; then typePass; elif [[ $typefield == "password" ]]; then typePass;
elif [[ $typefield == "< Return" ]]; then mainMenu; elif [[ $typefield == "< Return" ]]; then mainMenu;
@ -263,7 +263,7 @@ typeMenu () {
copyMenu () { copyMenu () {
checkIfPass 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; if [[ $copyfield == "" ]]; then exit;
elif [[ $copyfield == "password" ]]; then copyPass; elif [[ $copyfield == "password" ]]; then copyPass;
elif [[ $copyfield == "< Return" ]]; then mainMenu; elif [[ $copyfield == "< Return" ]]; then mainMenu;