Update installation script to check for ED25519 keys instead of RSA keys

This commit is contained in:
2025-03-18 22:24:18 +00:00
parent 27c2e6f726
commit 9439ca390e

View File

@@ -142,8 +142,8 @@ fi
# Clone password-store # Clone password-store
if [ "$USER" = "trude" ]; then if [ "$USER" = "trude" ]; then
if [ ! -f "$HOME/.ssh/id_rsa" ] || [ ! -f "$HOME/.ssh/id_rsa.pub" ]; then if [ ! -f "$HOME/.ssh/id_ed25519" ] || [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
printf "${RED}RSA key not found. Please add your RSA key pair for password-store.${NC}\n" printf "${RED}ED25519 key not found. Please add your ED25519 key pair for password-store.${NC}\n"
elif ! gpg --list-keys "ehtrude@gmail.com" >/dev/null 2>&1; then elif ! gpg --list-keys "ehtrude@gmail.com" >/dev/null 2>&1; then
printf "${RED}GPG key for ehtrude@gmail.com not found. Please import the key for password-store.${NC}\n" printf "${RED}GPG key for ehtrude@gmail.com not found. Please import the key for password-store.${NC}\n"
else else