fix error when SSH_CLIENT is unbind in pinentry script
This commit is contained in:
parent
a8e3cb54ad
commit
3e1a92bac0
1 changed files with 3 additions and 3 deletions
|
|
@ -9,10 +9,10 @@ pkgs.writeShellApplication {
|
||||||
/dev/tty[1-9])
|
/dev/tty[1-9])
|
||||||
pinentry-curses;;
|
pinentry-curses;;
|
||||||
/dev/pts/*)
|
/dev/pts/*)
|
||||||
if [ -z "$SSH_CLIENT" ]; then
|
if [ -v SSH_CLIENT ] && [ -n "$SSH_CLIENT" ]; then
|
||||||
pinentry-qt
|
|
||||||
else
|
|
||||||
pinentry-curses
|
pinentry-curses
|
||||||
|
else
|
||||||
|
pinentry-qt
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue