Fix a small bug with the SSH agent launch test.
This commit is contained in:
parent
3d46e6c304
commit
47e5e6e3d6
2
.bashrc
2
.bashrc
|
@ -89,7 +89,7 @@ function start_agent {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if we already have an agent running and sourced
|
# Check if we already have an agent running and sourced
|
||||||
if [ -z "${SSH_AUTH_SOCK}" ]; then
|
if [ -z "${SSH_AUTH_SOCK}" -a -s "${PS1}" ]; then
|
||||||
# Source SSH settings, if applicable
|
# Source SSH settings, if applicable
|
||||||
if [ -f "${SSH_ENV}" ]; then
|
if [ -f "${SSH_ENV}" ]; then
|
||||||
. "${SSH_ENV}" > /dev/null
|
. "${SSH_ENV}" > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue