]> git.wh0rd.org Git - home.git/commitdiff
only source keychain files if they exist
authorMike Frysinger <vapier@gentoo.org>
Mon, 8 Dec 2008 23:49:40 +0000 (18:49 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:06 +0000 (15:36 -0400)
.profile.d/keychain.sh

index a7bf3bacf86b56651801ae736d3dd4fad85ede8d..920035b3be2dd626f71400fadff971ca14ed96ba 100644 (file)
@@ -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