Quote addition.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-02 02:11:13 +01:00
commit 86eecf9035

View file

@ -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)"