Files
infra/dotfiles/desktop/.config/service/ssh-agent/run
2026-04-14 14:12:30 +02:00

16 lines
269 B
Bash
Executable File

#!/bin/sh
set -eu
sockdir="$HOME/.local/state/ssh-agent"
sockpath="$sockdir/socket"
mkdir -p "$sockdir"
rm -f "$sockpath"
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
exec chpst -e "$TURNSTILE_ENV_DIR" ssh-agent -D -a "$sockpath"
fi
exec ssh-agent -D -a "$sockpath"