From 8c5b32c35795f032b363dee13240fc2c2d934619 Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Mon, 15 Oct 2018 12:11:22 -0700 Subject: [PATCH] Revert "wget: don't be verbose but show download progress" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 952b9c823ec0f0d7fec397afadb3692c3d11305f. Older wget versions don't support the --show-progress option: wget: unrecognized option '--show-progress' Usage: wget [OPTION]... [URL]... Try ‘wget --help’ for more options. --- bin/dasht-docsets-install | 4 ++-- bin/dasht-docsets-update | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dasht-docsets-install b/bin/dasht-docsets-install index da5f01f..d58f7af 100755 --- a/bin/dasht-docsets-install +++ b/bin/dasht-docsets-install @@ -65,7 +65,7 @@ test "$1" = '-f' -o "$1" = '--force' && force=1 && shift || unset force cache() { url=$1 file="$DASHT_CACHE_DIR/${url##*/}" - wget -T 2 -t 1 -P "${file%/*}" -N "$url" --no-verbose || test -s "$file" + wget -T 2 -t 1 -P "${file%/*}" -N "$url" || test -s "$file" echo "$file" } master_url=https://api.github.com/repos/Kapeli/feeds/git/refs/heads/master @@ -92,6 +92,6 @@ for docset; do tgz="$DASHT_DOCSETS_DIR/$basename" url="https://kapeli.com/feeds/$basename" - wget -P "$DASHT_DOCSETS_DIR" -N -c "$url" --no-verbose --show-progress + wget -P "$DASHT_DOCSETS_DIR" -N -c "$url" dasht-docsets-extract "$tgz" done diff --git a/bin/dasht-docsets-update b/bin/dasht-docsets-update index 6658af0..85b8335 100755 --- a/bin/dasht-docsets-update +++ b/bin/dasht-docsets-update @@ -54,7 +54,7 @@ done | sort -u | while read -r tgz; do url="https://kapeli.com/feeds/$(basename "$tgz")" touch -r "$tgz" "$last_modified_at" - wget -P "$DASHT_DOCSETS_DIR" -N "$url" --no-verbose --show-progress + wget -P "$DASHT_DOCSETS_DIR" -N "$url" test "$tgz" -nt "$last_modified_at" && dasht-docsets-extract "$tgz" rm "$last_modified_at" done