summaryrefslogtreecommitdiff
path: root/ssh-co-dotfiles
blob: e66caf424e8ca4db289ffa76361f76005b733ff1 (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 " 66:ab:46:50:ce:21:a5:4a:36:8c:82:0e:77:81:34:d5:53:10:d0:99"
echo
ssh "$h" '! [ -e .dotfiles ] &&
	svn co https://orata.debian.or.at/svn/weaselutils/trunk/dotfiles .dotfiles &&
	cd .dotfiles &&
	./Link-Them &&
	echo "All done"'