Add gpg_auth to FreeBSD.

This commit is contained in:
Tom Alexander
2022-10-27 01:43:04 -04:00
parent eb2ebb6cd6
commit 22ebc631fc
9 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
#
# Wrapper to set the SSH auth socket to GPG for services that do not
# yet support security key ssh keys
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
exec env SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" "$@"