summaryrefslogtreecommitdiffstats
path: root/skripti/download-changes-to-website.sh
blob: 2d5dce44f9c272b945b3d815b370f3362402d322 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -ex
n=`rev <<<$0 | cut -d/ -f1 | rev`
s=10
[ x$2 != x ] && s=$2
while :
do
	t=`mktemp -p "" $n.XXX`
	wget -O$t $1
	f=`sha256sum $t | cut -d\  -f1`
	mv $t $f
	sleep $s
done