mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
page on nsfw and upload limit to 20 pages at a time
This commit is contained in:
parent
c67f2f4365
commit
6467d3b671
1 changed files with 6 additions and 1 deletions
|
@ -91,7 +91,12 @@ fi
|
|||
|
||||
if [[ ${#UPARGS[@]} -gt 0 ]]; then
|
||||
if [[ ! ${NOUPLOAD} ]]; then
|
||||
curl ${UPARGS[@]} "https://$N_USER:$N_PWD@neocities.org/api/upload" && touch upload.lasttime
|
||||
# Upload 20 files at a time to avoid cURL crashes
|
||||
STARTINDEX=0
|
||||
while [ $STARTINDEX -lt ${#UPARGS[@]} ]; do
|
||||
curl ${UPARGS[@]:$STARTINDEX:20} "https://$N_USER:$N_PWD@neocities.org/api/upload" && touch upload.lasttime
|
||||
STARTINDEX=$(($STARTINDEX+20))
|
||||
done
|
||||
else
|
||||
echo "Not uploading differing files."
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue