From: Silvio Rhatto Date: Fri, 18 Jan 2013 00:34:20 +0000 (-0200) Subject: Run agents just if they exist X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=eda02b6d9ae462ec4747bbedb3b26bc63b66c692;p=metadot.git Run agents just if they exist --- diff --git a/modules/profile/profile b/modules/profile/profile index 0fa8e2b..f442602 100644 --- a/modules/profile/profile +++ b/modules/profile/profile @@ -25,10 +25,14 @@ export EDITOR="vim -X" eval "`dircolors -b ~/.dircolorsrc`" # SSH Agent -source $HOME/apps/scripts/ssh-agent-eval +if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then + source $HOME/apps/scripts/ssh-agent-eval +fi # GPG Agent -source $HOME/apps/scripts/gpg-agent-eval +if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then + source $HOME/apps/scripts/gpg-agent-eval +fi # Remove lost found folder if empty if [ -d "$HOME/lost+found" ]; then