2021-06-15 11:13:24 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# stdin: default config
|
|
|
|
# stdout: modified config
|
2021-09-10 15:59:33 +02:00
|
|
|
set -e
|
2021-06-15 11:13:24 +02:00
|
|
|
cat
|
|
|
|
|
2023-08-13 16:13:44 +02:00
|
|
|
# shellcheck disable=SC2016
|
2021-06-15 12:39:36 +02:00
|
|
|
echo '
|
|
|
|
GPG_TTY=$(tty)
|
2021-04-29 14:24:57 +02:00
|
|
|
export GPG_TTY
|
|
|
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
|
|
|
|
|
|
|
unset SSH_AGENT_PID
|
|
|
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
|
|
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
|
|
export SSH_AUTH_SOCK
|
2021-06-15 12:39:36 +02:00
|
|
|
fi'
|
|
|
|
|
|
|
|
# Source import of public key
|
|
|
|
if [ -f ~/import-pubkey ]; then
|
|
|
|
. /etc/bashrc
|
2023-08-13 16:13:44 +02:00
|
|
|
fi
|