Run the shell under ssh-agent if needed
This commit is contained in:
parent
f360c87437
commit
2439b6d226
1 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,9 @@
|
|||
#!/bin/bash
|
||||
if ! [ -S "${SSH_AUTH_SOCK-:/dev/null}" ] && [ -x /usr/bin/ssh-agent ]
|
||||
then
|
||||
exec /usr/bin/ssh-agent $SHELL
|
||||
fi
|
||||
|
||||
export ACP_BASHRC=1
|
||||
|
||||
if [ -f /etc/bashrc ]
|
||||
|
|
Loading…
Reference in a new issue