]> gitweb.fluxo.info Git - metadot.git/commitdiff
Run agents just if they exist
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Jan 2013 00:34:20 +0000 (22:34 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Jan 2013 00:34:20 +0000 (22:34 -0200)
modules/profile/profile

index 0fa8e2b5c96dc68608945fdf5cd06b808344c736..f442602cf6956c7cad3ad7eb69993f85a4494a27 100644 (file)
@@ -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