Update chezmoi and filter FIDO enabled ssh keys from ssh-agent for MacOS
This commit is contained in:
parent
664c0667de
commit
b01add300c
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
golang 1.19.2
|
golang 1.19.2
|
||||||
chezmoi 2.24.0
|
chezmoi 2.25.0
|
||||||
nodejs lts
|
nodejs lts
|
||||||
|
|
|
@ -31,7 +31,10 @@ function add_ssh_keys() {
|
||||||
SSH_AGENT_IDENTITIES="$(ssh-add -l || true)"
|
SSH_AGENT_IDENTITIES="$(ssh-add -l || true)"
|
||||||
2>/dev/null for IDENTITY_FILE in ~/.ssh/id_*~*.pub; do
|
2>/dev/null for IDENTITY_FILE in ~/.ssh/id_*~*.pub; do
|
||||||
if [[ "$SSH_AGENT_IDENTITIES" != *"$(ssh-keygen -lf "$IDENTITY_FILE")"* ]]; then
|
if [[ "$SSH_AGENT_IDENTITIES" != *"$(ssh-keygen -lf "$IDENTITY_FILE")"* ]]; then
|
||||||
NEW_IDENTITIES+=("$IDENTITY_FILE")
|
# skip _sk keys on MacOS for now
|
||||||
|
if ! [[ "$OSTYPE" =~ ^darwin ]] || ! [[ "$IDENTITY_FILE" =~ _sk$ ]]; then
|
||||||
|
NEW_IDENTITIES+=("$IDENTITY_FILE")
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue