summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-11-16 06:10:41 +0000
committerMike Crute <mike@crute.us>2020-11-16 06:10:41 +0000
commitb95fe58226e36dadd0602b0ddd35194b4ba02169 (patch)
tree1a22022f4cac0d9ff64c0b4b367f850bd5f26391 /.bashrc
parentfb3ffdc539884cb862cf08538d669a26b1bc70b2 (diff)
downloaddotfiles-b95fe58226e36dadd0602b0ddd35194b4ba02169.tar.bz2
dotfiles-b95fe58226e36dadd0602b0ddd35194b4ba02169.tar.xz
dotfiles-b95fe58226e36dadd0602b0ddd35194b4ba02169.zip
Fixing ssh agent check
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 9908503..737b17d 100644
--- a/.bashrc
+++ b/.bashrc
@@ -584,7 +584,7 @@ func_export tm
584# this ugly hack of a check function. 584# this ugly hack of a check function.
585function _ssh_agent_is_running 585function _ssh_agent_is_running
586{ 586{
587 output=$(ssh-add 2>&1) 587 output=$(ssh-add -l 2>&1)
588 [[ $? -ne 2 && ! "$output" =~ "communication with agent failed" ]] 588 [[ $? -ne 2 && ! "$output" =~ "communication with agent failed" ]]
589} 589}
590 590