From b69fd3b61c553cfaa59b40b32ab37e2be0f987b0 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Thu, 6 Oct 2022 19:04:21 +0100 Subject: [PATCH] Missing -p when creating root's gnupg dir. --- .bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index f1cb60d..3f5614e 100644 --- a/.bash_profile +++ b/.bash_profile @@ -17,7 +17,7 @@ PLATFORM="$(uname -s)" if [[ "$PLATFORM" = "Linux" ]]; then # This is a hack to work around a problem with elogind/pam not creating # a gnupg directory under /run/user/0 for the gpg-agent socket. - (( $(id -u) == 0 )) && [[ -e "$HOME/.gnupg/S.gpg-agent" ]] && mkdir -m 700 /run/user/0/gnupg && ln -sf "$HOME/.gnupg/S.gpg-agent" /run/user/0/gnupg + (( $(id -u) == 0 )) && [[ -e "$HOME/.gnupg/S.gpg-agent" ]] && mkdir -m 700 -p /run/user/0/gnupg && ln -sf "$HOME/.gnupg/S.gpg-agent" /run/user/0/gnupg export GPG_TTY="$(tty)" && gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1 export I_WANT_A_BROKEN_PS=1 export LYNX_CFG="$HOME/.lynx.cfg"