Skip to content

Commit

Permalink
Revert "wget: don't be verbose but show download progress"
Browse files Browse the repository at this point in the history
This reverts commit 952b9c8.

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.
  • Loading branch information
sunaku committed Oct 15, 2018
1 parent 957fa0d commit 8c5b32c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/dasht-docsets-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion bin/dasht-docsets-update
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c5b32c

Please sign in to comment.