|
|
|
@ -11,11 +11,14 @@ else
|
|
|
|
|
if [ -f $p/ssh-askpass ]; then |
|
|
|
|
ssh_askpass="$p/ssh-askpass" |
|
|
|
|
break |
|
|
|
|
elif [ -f $p/x11-ssh-askpass ]; then |
|
|
|
|
ssh_askpass="$p/x11-ssh-askpass" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
if [ ".$ssh_askpass" = . ]; then |
|
|
|
|
echo "ssh:ERROR: neither \"ssh-askpass\" installed nor \$SSH_ASKPASS provided" 1>&2 |
|
|
|
|
echo "ssh:ERROR: neither \"[x11-]ssh-askpass\" installed nor \$SSH_ASKPASS provided" 1>&2 |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
exec $ssh_askpass "$@" |
|
|
|
|