run only local not in remote shell

This commit is contained in:
Jakobus Schürz 2021-10-11 08:00:27 +02:00
parent 02202dd66c
commit 992da95715

View file

@ -368,7 +368,14 @@ ssh-runinagent () {
}
if [ $SSH_TTY ] ; then
echo remote >&2
res=1
else
echo local >&2
agent-start-or-restart $ssh_identity
! $createonly && agent-load-identity-keys $ssh_identity
res=0
fi
SCRIPTEXIT
exit $?
exit $res