From a5055be70dff735b6cf3df116d94b91603c095c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 28 May 2023 11:34:53 +0200 Subject: download changes to website update --- skripti/download-changes-to-website.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'skripti/download-changes-to-website.sh') diff --git a/skripti/download-changes-to-website.sh b/skripti/download-changes-to-website.sh index 6059267..590a104 100755 --- a/skripti/download-changes-to-website.sh +++ b/skripti/download-changes-to-website.sh @@ -6,8 +6,8 @@ s=10 while : do t=`mktemp -p "" $n.XXX` - wget -O$t $1 + curl --cookie "$3" $1 | grep -v __RequestVerificationToken > $t f=`sha256sum $t | cut -d\ -f1` - [ -f $f ] && rm $t || mv $t $f + [ -f $f ] && rm $t || ( mv $t $f && eval "$4" ) sleep $s done -- cgit v1.2.3