tasty renamings
[feisty_meow.git] / customize / fred / scripts / pick_credentials.sh
1 #!/bin/bash
2
3 # chooses the right certificate to use for logging in via ssh.
4
5 #hmmm: not the slightest bit general here currently.
6 #      what about having a main key variable and a sourceforge key variable?
7 #      better yet, an array of site patterns and keys for those sites.
8
9 keyfile="$HOME/.ssh/id_dsa_fred"
10
11 if [ ! -z "$(echo $* | grep -i sourceforge)" ]; then
12   keyfile="$HOME/.ssh/id_dsa_sourceforge"
13 fi
14
15 if [ ! -f "$keyfile" ]; then
16   unset keyfile
17 fi