gpg-agent: fix compatibility with sh when enableSshSupport (#6287)

Co-authored-by: sunqiancheng <sunqiancheng@sensetime.com>
This commit is contained in:
DDoSolitary 2025-01-08 19:37:59 +08:00 committed by GitHub
parent 5c4302313d
commit 45bcdbc910
Failed to generate hash of commit

View file

@ -282,7 +282,7 @@ in {
++ [ cfg.extraConfig ]);
home.sessionVariablesExtra = optionalString cfg.enableSshSupport ''
if [[ -z "$SSH_AUTH_SOCK" ]]; then
if [ -z "$SSH_AUTH_SOCK" ]; then
export SSH_AUTH_SOCK="$(${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket)"
fi
'';