[Assorted-commits] SF.net SVN: assorted:[1863] shell-tools/trunk/src/bash-commons/bashrc.bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2013-08-14 23:51:29
|
Revision: 1863 http://sourceforge.net/p/assorted/svn/1863 Author: yangzhang Date: 2013-08-14 23:51:26 +0000 (Wed, 14 Aug 2013) Log Message: ----------- Silence keychain script check Modified Paths: -------------- shell-tools/trunk/src/bash-commons/bashrc.bash Modified: shell-tools/trunk/src/bash-commons/bashrc.bash =================================================================== --- shell-tools/trunk/src/bash-commons/bashrc.bash 2013-08-10 07:51:45 UTC (rev 1862) +++ shell-tools/trunk/src/bash-commons/bashrc.bash 2013-08-14 23:51:26 UTC (rev 1863) @@ -901,7 +901,7 @@ # session shells still exist with a reference to the old socket - with this, # and with a run of update-agent, the shells can now use the new socket. refresh-agent() { - if [[ ! -S $SSH_AUTH_SOCK ]] && ( . ~/.keychain/$HOSTNAME-sh && [[ -S $SSH_AUTH_SOCK ]] ) + if [[ ! -S $SSH_AUTH_SOCK ]] && ( . ~/.keychain/$HOSTNAME-sh &> /dev/null && [[ -S $SSH_AUTH_SOCK ]] ) then . ~/.keychain/$HOSTNAME-sh fi } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |