Skip to content

Commit

Permalink
gpg module: the original grep expression cannot work on macos, make i…
Browse files Browse the repository at this point in the history
…t simple for checking
  • Loading branch information
Vonfry committed Jun 28, 2020
1 parent 2fc2920 commit 4c7ac6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gpg/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ source "$_gpg_agent_env" 2> /dev/null
# Start gpg-agent if not started.
if [[ -z "$GPG_AGENT_INFO" && ! -S "${_gpg_agent_socket}" ]]; then
# Start gpg-agent if not started.
if ! ps -U "$LOGNAME" -o pid,ucomm | grep -q -- "${${${(s.:.)GPG_AGENT_INFO}[2]}:--1} gpg-agent"; then
if ! ps -U "$LOGNAME" -o pid,ucomm | grep -q "gpg-agent"; then
mkdir -p "$_gpg_agent_env:h"
eval "$(gpg-agent --daemon | tee "$_gpg_agent_env")"
fi
Expand Down

0 comments on commit 4c7ac6f

Please sign in to comment.