blob: 6059267709e492834bef2852c59a632e95efb1a4 (
plain) (
tree)
|
|
#!/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`
[ -f $f ] && rm $t || mv $t $f
sleep $s
done
|