only use actually typed input

This commit is contained in:
Rasmus Steinke 2016-05-24 23:57:22 +02:00
parent 1b6b4a76ef
commit cd71ca3b7e

View File

@ -390,7 +390,7 @@ listgpg () {
insertPass () {
cd "${root}"
name="$(listgpg | rofi -dmenu -mesg "Type name, make sure it is unique" -p "> ")"
name="$(listgpg | rofi -dmenu -format 'f' -mesg "Type name, make sure it is unique" -p "> ")"
# name="$(echo -e "$(list_passwords 2>/dev/null)" | rofi -dmenu -mesg "Type name, make sure it is unique" -p "> ")"
val=$?
if [[ $val -eq 1 ]]; then exit; fi