summaryrefslogtreecommitdiff
path: root/ssh-co-dotfiles
blob: 5075d29595d77e995df98a02c917fbd498ccf24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e
set -u

if [ "$#" != 1 ]; then
	echo >&2 "Usage: $0 <hostname>"
	exit 1
fi

h="$1"
echo "Expect svn cert fingerprint to be"
echo " 80:88:ec:2a:29:5e:19:c5:46:ef:8c:24:eb:5a:a3:07:58:dd:06:29"
echo
ssh "$h" '! [ -e .dotfiles ] &&
	svn co https://orata.debian.or.at/svn/weaselutils/trunk/dotfiles .dotfiles &&
	cd .dotfiles &&
	./Link-Them &&
	echo "All done"'