sabman / utility_scripts forked from foca/utility_scripts

Some utility scripts (the stuff I keep in ~/bin)

This URL has Read+Write access

utility_scripts / ssh
100755 10 lines (6 sloc) 0.128 kb
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
 
real_ssh=/opt/local/bin/ssh
 
if [[ $(ssh-add -L | cut -d\ -f1) != "ssh-rsa" ]]; then
ssh-add
fi
 
$real_ssh $@