git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/exec.bash
diff options
context:
space:
mode:
Diffstat (limited to '.bash/exec.bash')
-rw-r--r--.bash/exec.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/.bash/exec.bash b/.bash/exec.bash
index 24b3ee9..316d1c4 100644
--- a/.bash/exec.bash
+++ b/.bash/exec.bash
@@ -11,7 +11,9 @@ if echo "${SSHAGH[@]}" | grep -F --word-regexp "$(hostname -f)" > /dev/null;then
# do not launch from SSH session, conflicts with user logging on locally afterwards
if [ -z "$SSH_TTY" ];then
"$HOME/bin/ssh-agent-launcher" -q
- gpg-connect-agent --dirmngr /bye
+ if ! ps -fp "$(pgrep -d, -x dirmngr)" | grep "^$(whoami)" > /dev/null
+ gpg-connect-agent --dirmngr /bye 2>/dev/null
+ fi
fi
fi