remove export after ln, because some tools will check the socket path

such as pam ssh auth on NixOS.
This commit is contained in:
Vonfry 2019-01-26 14:59:21 +08:00
parent 2e1b45c048
commit 7d32a08454
No known key found for this signature in database
GPG Key ID: 7FC96CE000223B1C

View File

@ -33,7 +33,6 @@ fi
# Create a persistent SSH authentication socket.
if [[ -S "$SSH_AUTH_SOCK" && "$SSH_AUTH_SOCK" != "$_ssh_agent_sock" ]]; then
ln -sf "$SSH_AUTH_SOCK" "$_ssh_agent_sock"
export SSH_AUTH_SOCK="$_ssh_agent_sock"
fi
# Load identities.