Reload agent if SSH or toolbox

This commit is contained in:
Sam A. 2023-03-23 18:04:15 +01:00
parent 5cf5cb936a
commit 12b2f402bd
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -2,4 +2,6 @@ if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
export GPG_TTY="$TTY" export GPG_TTY="$TTY"
gpgconf --launch gpg-agent gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &> /dev/null gpg-connect-agent updatestartuptty /bye &> /dev/null
else
gpg-connect-agent reloadagent /bye &> /dev/null
fi fi