zero-system: third time is the charm

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-01-18 10:39:40 -05:00
parent 9607f2af4b
commit cff3d7e45f
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -59,26 +59,17 @@ bindkey "\eOF" end-of-line
#bindkey "\eOc" forward-word
if [ "${USER}" != "root" ]; then
keys=""
if [ -r ~/.ssh/id_ed25519_sk_green ]; then
keys="~/.ssh/id_ed25519_sk_green"
else
if [ ! -r ~/.ssh/id_ed25519_sk_green ]; then
printf "This system is missing your yk5cgreen primary key id_ed25519_sk_green\n"
fi
if [ -r ~/.ssh/id_ed25519_sk_red ]; then
keys="${keys} ~/.ssh/id_ed25519_sk_red"
else
if [ ! -r ~/.ssh/id_ed25519_sk_red ]; then
printf "This system is missing your yk5cred backup key id_ed25519_sk_red\n"
fi
if [ -r ~/.ssh/gentoo_rsa ]; then
keys="${keys} ~/.ssh/gentoo_rsa"
else
if [ ! -r ~/.ssh/gentoo_rsa ]; then
printf "This system is missing your old key gentoo_rsa\n"
fi
if [ -n "${keys}" ]; then
eval $(keychain --eval ${keys})
fi
eval $(keychain --eval --ignore-missing ~/.ssh/id_ed25519_sk_green ~/.ssh/id_ed25519_sk_red ~/.ssh/gentoo_rsa)
GPG_TTY=$(tty)
fi