From 9cbeed5b2a6832730000f1c4a5121209c5d26bbc Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 26 Dec 2019 14:08:40 +0100 Subject: [PATCH] fix: do not assume gpgconf --- .profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 77ceeba..07f1b2b 100644 --- a/.profile +++ b/.profile @@ -9,5 +9,7 @@ PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" [ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc -export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) -gpgconf --launch gpg-agent +if ! [ -x "$(command -v gpgconf)" ]; then + export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + gpgconf --launch gpg-agent +fi