From 91caeac1fc466fc4db767e30a780e2ef1beda653 Mon Sep 17 00:00:00 2001 From: selfdenial Date: Thu, 6 Mar 2025 12:57:59 -0700 Subject: [PATCH] fix: progress arguments while downloading index --- kiwix-zim-updater.sh | 2 +- kiwix-zim.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwix-zim-updater.sh b/kiwix-zim-updater.sh index 16a0d45..4160b86 100755 --- a/kiwix-zim-updater.sh +++ b/kiwix-zim-updater.sh @@ -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 "(?<=)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z)" | 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 "(?<=)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")" echo "$RawLibrary" >> kiwix-index else diff --git a/kiwix-zim.sh b/kiwix-zim.sh index 16a0d45..4160b86 100755 --- a/kiwix-zim.sh +++ b/kiwix-zim.sh @@ -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 "(?<=)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z)" | 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 "(?<=)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?=Z)" | head -1 > kiwix-index) | grep -i 'application/x-zim' | grep -ioP "^\s+\K.*$")" echo "$RawLibrary" >> kiwix-index else