From 80798c9982ca0eb770ee536ec56f1ed2e0b9e756 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 1 Sep 2021 17:03:54 -0400 Subject: [PATCH] update for ssh-add -l output --- ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh b/ssh index 39c57d2..50e0056 100755 --- a/ssh +++ b/ssh @@ -1,6 +1,6 @@ #!/bin/bash -if [[ "$(ssh-add -l)" == "" ]]; then +if [[ "$(ssh-add -l)" =~ "no identities" ]]; then ssh-add $HOME/.ssh/joshs_key