Skip to content

Commit

Permalink
Unset env needs parameter expansion. Add log if SSH_AUTH_SOCK got pic…
Browse files Browse the repository at this point in the history
…ked up.
  • Loading branch information
engelant committed Oct 31, 2024
1 parent 1e1ec40 commit 0aefb47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion containers/ws/label-run
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0aefb47

Please sign in to comment.