fix parameter-expansion

This commit is contained in:
Jakobus Schürz 2023-08-03 16:40:41 +02:00
parent 60a0a432d4
commit 25a9657fd6

View file

@ -956,7 +956,7 @@ loadagent() {
af=$(sshstartagent --create-only $1 ) af=$(sshstartagent --create-only $1 )
loginfo "Load agent from $af" loginfo "Load agent from $af"
unset SSH_AUTH_SOCK SSH_AGENT_PID PKCS11_MODULE unset SSH_AUTH_SOCK SSH_AGENT_PID PKCS11_MODULE
[ -n "${af+x}" ] && eval $(<$af) [ -n "${af:+x}" ] && eval $(<$af)
if which tmux 1>/dev/null 2>&1 if which tmux 1>/dev/null 2>&1
then then
[ -n "${SSH_AUTH_SOCK:-}" ] && tmux set-environment SSH_AUTH_SOCK $SSH_AUTH_SOCK [ -n "${SSH_AUTH_SOCK:-}" ] && tmux set-environment SSH_AUTH_SOCK $SSH_AUTH_SOCK