2 changed files with 28 additions and 1 deletions
@ -0,0 +1,22 @@
|
||||
#!/bin/sh |
||||
## |
||||
## ssh-askpass -- Internal OpenSSH wrapper for ssh-askpass |
||||
## |
||||
|
||||
ssh_askpass="" |
||||
if [ ".$SSH_ASKPASS" != . ]; then |
||||
ssh_askpass="$SSH_ASKPASS" |
||||
else |
||||
for p in @l_prefix@ `echo $PATH | sed -e 's/:/ /g'`; do |
||||
if [ -f $p/ssh-askpass ]; then |
||||
ssh_askpass="$p/ssh-askpass" |
||||
break |
||||
fi |
||||
done |
||||
fi |
||||
if [ ".$ssh_askpass" = . ]; then |
||||
echo "ssh:ERROR: neither \"ssh-askpass\" installed nor \$SSH_ASKPASS provided" 1>&2 |
||||
exit 1 |
||||
fi |
||||
exec $ssh_askpass "$@" |
||||
|
Loading…
Reference in new issue