Run the shell under ssh-agent if needed

This commit is contained in:
Anthony Rose 2021-11-16 13:18:05 +00:00
parent f360c87437
commit 2439b6d226

View file

@ -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 ]