ssh-agent: use POSIX-conform test for session variables

This commit is contained in:
Max-Georg Debbert 2024-06-19 22:16:19 +02:00
parent d7830d0542
commit c9366cfa02

View file

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