summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/feed.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/feed.sh b/lib/feed.sh
index 6dcf4c1..87009da 100644
--- a/lib/feed.sh
+++ b/lib/feed.sh
@@ -35,8 +35,16 @@ feed_deps=
feed_download()
{
local feed_index="${1}"
+ local use_gzip="${2}"
+ local gzip=
- wget -q -O - "${feed_index}"
+ if ${use_gzip}; then
+ gzip=gzip
+ else
+ gzip=cat
+ fi
+
+ wget -q -O - "${feed_index}" | ${gzip}
return 0
}