From 45bcdbc910dc5131943bb6f7edb156617898fd1a Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Wed, 8 Jan 2025 19:37:59 +0800 Subject: [PATCH] gpg-agent: fix compatibility with sh when enableSshSupport (#6287) Co-authored-by: sunqiancheng --- modules/services/gpg-agent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index 6bb19abe865a..edb87a9d19d3 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -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 '';