diff --git a/.bashrc b/.bashrc index cad450f..ebf2e29 100644 --- a/.bashrc +++ b/.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)"