net-misc/openssh: fix syntax error in profile.d script

Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/40811
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-02-28 14:25:01 +01:00
committed by Sam James
parent ae6c976da6
commit 5ef5371056
2 changed files with 1 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later
#
if [ -f /run/openrc/softlevel ] && [ -z "$SSH_AUTH_SOCK" ]
if [ -f /run/openrc/softlevel ] && [ -z "$SSH_AUTH_SOCK" ] \
&& rc-service --user --exists ssh-agent 2>&1 >/dev/null; then
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.sock"
fi