mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-03 14:17:37 +00:00
parent
7a81ad032d
commit
d8360688b3
6
tomb
6
tomb
@ -398,7 +398,7 @@ ask_password() {
|
||||
pass_asked=1
|
||||
}
|
||||
fi
|
||||
if [[ ! -z $DISPLAY ]] && [[ -z $pass_asked ]]; then
|
||||
if [[ ! -z $DISPLAY ]] && [[ $pass_asked == 0 ]]; then
|
||||
_verbose "X11 display detected"
|
||||
if _is_found "pinentry-gtk-2"; then
|
||||
_verbose "using pinentry-gtk2"
|
||||
@ -422,7 +422,7 @@ ask_password() {
|
||||
pass_asked=1
|
||||
fi
|
||||
fi
|
||||
if [[ -z $pass_asked ]]; then
|
||||
if [[ $pass_asked == 0 ]]; then
|
||||
_verbose "no display detected"
|
||||
_is_found "pinentry-curses" && {
|
||||
_verbose "using pinentry-curses with no display"
|
||||
@ -431,7 +431,7 @@ ask_password() {
|
||||
}
|
||||
fi
|
||||
|
||||
[[ -z $pass_asked ]] &&
|
||||
[[ $pass_asked == 0 ]] &&
|
||||
_failure "Cannot find any pinentry-curses and no DISPLAY detected."
|
||||
|
||||
# parse the pinentry output
|
||||
|
Loading…
Reference in New Issue
Block a user