From 3e0093b671042553aafe27206915478aa841704c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 8 Dec 2008 18:49:40 -0500 Subject: [PATCH] only source keychain files if they exist --- .profile.d/keychain.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.profile.d/keychain.sh b/.profile.d/keychain.sh index a7bf3ba..920035b 100644 --- a/.profile.d/keychain.sh +++ b/.profile.d/keychain.sh @@ -1,4 +1,4 @@ if type -P keychain >/dev/null ; then - source ~/.keychain/vapier-sh >& /dev/null - source ~/.keychain/vapier-sh-gpg >& /dev/null + [ -e ~/.keychain/vapier-sh ] && source ~/.keychain/vapier-sh + [ -e ~/.keychain/vapier-sh-gpg ] && source ~/.keychain/vapier-sh-gpg fi -- 2.39.5