update for ssh-add -l output

This commit is contained in:
josh committed 2021-09-01 17:03:54 -04:00
1 parent 2107fe9e0d
commit 80798c9982
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if [[ "$(ssh-add -l)" == "" ]]; then if [[ "$(ssh-add -l)" =~ "no identities" ]]; then
ssh-add $HOME/.ssh/joshs_key </dev/null ssh-add $HOME/.ssh/joshs_key </dev/null
fi fi