From 25a9657fd68be8d0964b65dfc7bcdb583ef39087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 3 Aug 2023 16:40:41 +0200 Subject: [PATCH] fix parameter-expansion --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index b7b6b18..f8d44a8 100755 --- a/functions.sh +++ b/functions.sh @@ -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