mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
16 lines
269 B
Bash
Executable File
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"
|