From d57c8086d5746393e8d592904107555c47348074 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 11 Dec 2020 22:27:42 +0000 Subject: [PATCH] Check for the new SSH key --- roles/home-cli/files/shrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 2365f42..b302a3d 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -325,8 +325,8 @@ case $- in ;; esac -if test -S "$SSH_AUTH_SOCK" && test -r "$HOME/.ssh/id_rsa" && [ $(ssh-add -l | grep "$HOME/.ssh/id_rsa" | wc -l) = 0 ]; then - ssh-add "$HOME/.ssh/id_rsa" +if test -S "$SSH_AUTH_SOCK" && test -r "$HOME/.ssh/id_ed25519" && [ $(ssh-add -l | grep "$HOME/.ssh/id_ed25519" | wc -l) = 0 ]; then + ssh-add "$HOME/.ssh/id_ed25519" fi if [ -r $HOME/.shrc.$(hostname -s 2>/dev/null || cat /etc/hostname) ]; then