gpg-agent: fix compatibility with sh when enableSshSupport (#6287)
Co-authored-by: sunqiancheng <sunqiancheng@sensetime.com>
This commit is contained in:
parent
5c4302313d
commit
45bcdbc910
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue