From 0aefb4755e8079c18ed2a448f6fa6a3da802b170 Mon Sep 17 00:00:00 2001 From: Anton Engelhardt Date: Thu, 31 Oct 2024 23:10:24 +0100 Subject: [PATCH] Unset env needs parameter expansion. Add log if SSH_AUTH_SOCK got picked up. --- containers/ws/label-run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/containers/ws/label-run b/containers/ws/label-run index 0b925e06f6b9..da887647e638 100755 --- a/containers/ws/label-run +++ b/containers/ws/label-run @@ -42,8 +42,10 @@ else /usr/libexec/cockpit-certificate-ensure - if [ -z "$SSH_AUTH_SOCK" ]; then + if [ -z ${SSH_AUTH_SOCK+x} ]; then eval "$(ssh-agent)" + else + echo Agent sock ${SSH_AUTH_SOCK} fi exec /usr/libexec/cockpit-ws --local-ssh "$@" fi