run only local not in remote shell
This commit is contained in:
parent
02202dd66c
commit
992da95715
1 changed files with 10 additions and 3 deletions
|
@ -368,7 +368,14 @@ ssh-runinagent () {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
agent-start-or-restart $ssh_identity
|
if [ $SSH_TTY ] ; then
|
||||||
! $createonly && agent-load-identity-keys $ssh_identity
|
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
|
SCRIPTEXIT
|
||||||
exit $?
|
exit $res
|
||||||
|
|
Loading…
Reference in a new issue