From 86eecf90352eb8a036ccb1a2eb5613f429b0398b Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Tue, 2 Jul 2019 02:11:13 +0100 Subject: [PATCH] Quote addition. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"