fix parameter-expansion
This commit is contained in:
parent
60a0a432d4
commit
25a9657fd6
1 changed files with 1 additions and 1 deletions
|
@ -956,7 +956,7 @@ loadagent() {
|
|||
af=$(sshstartagent --create-only $1 )
|
||||
loginfo "Load agent from $af"
|
||||
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
|
||||
then
|
||||
[ -n "${SSH_AUTH_SOCK:-}" ] && tmux set-environment SSH_AUTH_SOCK $SSH_AUTH_SOCK
|
||||
|
|
Loading…
Reference in a new issue