diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-05-28 11:34:53 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-05-28 11:34:53 +0200 |
commit | a5055be70dff735b6cf3df116d94b91603c095c3 (patch) | |
tree | 4c55cf6168291a92225f71b39d0640e24bea3515 /skripti/download-changes-to-website.sh | |
parent | Merge branch 'master' of ssh://ni/var/lib/git/sijanec/r (diff) | |
download | r-a5055be70dff735b6cf3df116d94b91603c095c3.tar r-a5055be70dff735b6cf3df116d94b91603c095c3.tar.gz r-a5055be70dff735b6cf3df116d94b91603c095c3.tar.bz2 r-a5055be70dff735b6cf3df116d94b91603c095c3.tar.lz r-a5055be70dff735b6cf3df116d94b91603c095c3.tar.xz r-a5055be70dff735b6cf3df116d94b91603c095c3.tar.zst r-a5055be70dff735b6cf3df116d94b91603c095c3.zip |
Diffstat (limited to '')
-rwxr-xr-x | skripti/download-changes-to-website.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |