summaryrefslogtreecommitdiff
path: root/ssh-co-dotfiles
blob: de97021e0d668df8a5cce469ac9430d0322cef9c (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 " a0:c2:28:00:63:4f:86:ae:f7:6a:03:25:b8:e5:f3:0d:fc:44:b1:2f"
echo
ssh "$h" '! [ -e .dotfiles ] &&
	svn co https://orata.debian.or.at/svn/weaselutils/trunk/dotfiles .dotfiles &&
	cd .dotfiles &&
	./Link-Them &&
	echo "All done"'