Browse Source

bash: cleaned way to detect existance of gpg-agent

master
Alejandro Mery 13 years ago
parent
commit
f4fa7d8e96
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      files/.bashrc

+ 1
- 1
files/.bashrc

@ -2,7 +2,7 @@ export LANG="en_GB.UTF-8"
# GPG
#
if [ ! -x "$(type -p gpg-agent)" ]; then
if ! type -p gpg-agent > /dev/null; then
:
elif test -f "$HOME/.gpg-agent-info" &&
kill -0 $(cut -d: -f2 "$HOME/.gpg-agent-info" 2> /dev/null ) 2> /dev/null; then

Loading…
Cancel
Save