write correct variable

This commit is contained in:
Jakobus Schürz 2020-09-21 18:04:30 +02:00
parent 495e22d0d9
commit 6fe65702e6

View file

@ -136,9 +136,9 @@ export -f reachable-default
cat << EOF > ~/.ssh/agents/agent-default-$(hostname) cat << EOF > ~/.ssh/agents/agent-default-$(hostname)
SSH_AUTH_SOCK=\${SSH_AUTH_SOCK}; export SSH_AUTH_SOCK; SSH_AUTH_SOCK=${SSH_AUTH_SOCK}; export SSH_AUTH_SOCK;
SSH_AGENT_PID=\${SSH_AGENT_PID}; export SSH_AGENT_PID; SSH_AGENT_PID=${SSH_AGENT_PID}; export SSH_AGENT_PID;
echo Agent pid \${SSH_AGENT_PID}; echo Agent pid ${SSH_AGENT_PID};
EOF EOF
[ -z "${SSH_ADD_DEFAULT_OPTIONS+x}" ] && { SSH_ADD_DEFAULT_OPTIONS="-t 7200"; export SSH_ADD_DEFAULT_OPTIONS; } [ -z "${SSH_ADD_DEFAULT_OPTIONS+x}" ] && { SSH_ADD_DEFAULT_OPTIONS="-t 7200"; export SSH_ADD_DEFAULT_OPTIONS; }