Quote addition.
This commit is contained in:
parent
6bc2b27b67
commit
86eecf9035
1 changed files with 1 additions and 1 deletions
2
.bashrc
2
.bashrc
|
@ -6,7 +6,7 @@ _agent_prompt_command() {
|
|||
# Check the ssh agent socket is still alive.
|
||||
# Need to work around an ssh-add bug here: ssh-add doesn't always return 2 on failure
|
||||
# to contact the agent, so also check if any errors were produced.
|
||||
OUTPUT=$(ssh-add -l 2>&1 >/dev/null)
|
||||
OUTPUT="$(ssh-add -l 2>&1 >/dev/null)"
|
||||
if ((${PIPESTATUS[0]} >= 2)) || [[ ! -z "$OUTPUT" ]]; then
|
||||
# Auth socket has become unusable, search for a new one.
|
||||
SOCK="$(_find_agent_sock)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue