diff --git a/pkgs/pinentry-selector.nix b/pkgs/pinentry-selector.nix index a2ecc9c..55c722f 100644 --- a/pkgs/pinentry-selector.nix +++ b/pkgs/pinentry-selector.nix @@ -9,10 +9,10 @@ pkgs.writeShellApplication { /dev/tty[1-9]) pinentry-curses;; /dev/pts/*) - if [ -z "$SSH_CLIENT" ]; then - pinentry-qt - else + if [ -v SSH_CLIENT ] && [ -n "$SSH_CLIENT" ]; then pinentry-curses + else + pinentry-qt fi ;; *)