From: Mike Frysinger Date: Mon, 8 Dec 2008 23:49:40 +0000 (-0500) Subject: only source keychain files if they exist X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3e0093b671042553aafe27206915478aa841704c;p=home.git only source keychain files if they exist --- 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