1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 05:47:29 +02:00

ssh-agent: use POSIX conforming if condition

This commit is contained in:
mgdbbrt 2024-09-20 09:38:42 +02:00 committed by GitHub
parent ecaed80b18
commit f48b181f01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ in {
]; ];
home.sessionVariablesExtra = '' home.sessionVariablesExtra = ''
if [[ -z "$SSH_AUTH_SOCK" ]]; then if [ -z "$SSH_AUTH_SOCK" ]; then
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent
fi fi
''; '';