Skip to content

Commit

Permalink
gpg-agent: fix compatibility with sh when enableSshSupport (#6287)
Browse files Browse the repository at this point in the history
Co-authored-by: sunqiancheng <[email protected]>
  • Loading branch information
DDoSolitary and sunqiancheng authored Jan 8, 2025
1 parent 5c43023 commit 45bcdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/services/gpg-agent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down

0 comments on commit 45bcdbc

Please sign in to comment.