[gopass] Fix entry selection

Fixed entry selection not working with new type checking fallback
mechanism, which would output to stdout, which the auto filling in turn
attempted to read from.
This commit is contained in:
Marty Oehme 2020-05-16 10:40:19 +02:00
parent 76b5335661
commit 8dcbb985c1
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -7,9 +7,9 @@
# passes along any options given to main script
rofi_opts=("$@")
_rofi() {
if type rofi 2>/dev/null; then
if type rofi 1>/dev/null 2>/dev/null; then
rofi -dmenu -no-auto-select -i "${rofi_opts[@]}" "$@" -p "Entry"
elif type dmenu 2>/dev/null; then
elif type dmenu 1>/dev/null 2>/dev/null; then
dmenu -i "${rofi_opts[@]}" "$@" -p "Entry"
else
exist rofi critical "rofi-gopass" || exit 0