From c9366cfa02f97c767a660a82508447f0717b7a11 Mon Sep 17 00:00:00 2001 From: Max-Georg Debbert <113188948+mgdbbrt@users.noreply.github.com> Date: Wed, 19 Jun 2024 22:16:19 +0200 Subject: [PATCH] ssh-agent: use POSIX-conform test for session variables --- modules/services/ssh-agent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/ssh-agent.nix b/modules/services/ssh-agent.nix index 16db3232..dccca05e 100644 --- a/modules/services/ssh-agent.nix +++ b/modules/services/ssh-agent.nix @@ -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 '';