chiark / gitweb /
bin/mdw-build: Delay official `assign' for `$toppath' and `$releasepath'.
[profile] / bin / add-ssh-keys
CommitLineData
6ffd4490
MW
1#! /bin/sh -e
2
3## An ugly hack: figure out the available SSH keys and feed them to the agent
4## in preference order, because the default order is wrong and there doesn't
5## seem to be any other way to fix this.
6unset ff
7for k in id_ed25519 id_rsa id_ecdsa id_dsa id_identity; do
8 if [ -f $HOME/.ssh/$k ]; then ff=$ff${ff+ }$HOME/.ssh/$k; fi
9done
10exec ssh-add $ff