fix: progress arguments while downloading index

This commit is contained in:
selfdenial 2025-03-06 12:57:59 -07:00
parent a5700bcc15
commit 91caeac1fc
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ master_scrape() {
if [[ FORCE_FETCH_INDEX -eq 1 ]] || [[ $indexIsValid -eq 0 ]]; then
# both write the file timestamp to the index file and save all of the links to RawLibrary
RawLibrary="$($WGET_CMD ${WGET_SHOW_PROGRESS//--progress=bar*/} -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
RawLibrary="$($WGET_CMD $WGET_SHOW_PROGRESS -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
echo "$RawLibrary" >> kiwix-index
else

View file

@ -87,7 +87,7 @@ master_scrape() {
if [[ FORCE_FETCH_INDEX -eq 1 ]] || [[ $indexIsValid -eq 0 ]]; then
# both write the file timestamp to the index file and save all of the links to RawLibrary
RawLibrary="$($WGET_CMD ${WGET_SHOW_PROGRESS//--progress=bar*/} -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
RawLibrary="$($WGET_CMD $WGET_SHOW_PROGRESS -q -O - "https://library.kiwix.org/catalog/v2/entries?count=-1" | tee --output-error=warn-nopipe >(grep -ioP "(?<=<updated>)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z</updated>)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")"
echo "$RawLibrary" >> kiwix-index
else