summaryrefslogtreecommitdiffstats
path: root/skripti
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-25 21:50:41 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-25 21:50:41 +0100
commit985f2088b55b5520a4f9449ad5a274ae305e0403 (patch)
treecf781af7a31a8f7a537baef7cfd67997413a8392 /skripti
parentodstrani datum komentarjev docx sh (diff)
downloadr-985f2088b55b5520a4f9449ad5a274ae305e0403.tar
r-985f2088b55b5520a4f9449ad5a274ae305e0403.tar.gz
r-985f2088b55b5520a4f9449ad5a274ae305e0403.tar.bz2
r-985f2088b55b5520a4f9449ad5a274ae305e0403.tar.lz
r-985f2088b55b5520a4f9449ad5a274ae305e0403.tar.xz
r-985f2088b55b5520a4f9449ad5a274ae305e0403.tar.zst
r-985f2088b55b5520a4f9449ad5a274ae305e0403.zip
Diffstat (limited to 'skripti')
-rwxr-xr-xskripti/download-changes-to-website.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/skripti/download-changes-to-website.sh b/skripti/download-changes-to-website.sh
new file mode 100755
index 0000000..2d5dce4
--- /dev/null
+++ b/skripti/download-changes-to-website.sh
@@ -0,0 +1,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