From 2db34bc5f78c74d8b371e836ed8dc32217eaee3a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 16 Apr 2019 20:55:08 -0400 Subject: feed_download(): Fix gunzip logic --- diff --git a/src/feed.sh b/src/feed.sh index 33d818b..7e4a19b 100644 --- a/src/feed.sh +++ b/src/feed.sh @@ -39,14 +39,14 @@ feed_download() if ${use_gzip}; then url="${base_url}/Packages.gz" + case "${list_file}" in + *.gz) gunzip='cat';; + *) gunzip="${GUNZIP}";; + esac else url="${base_url}/Packages" fi - case "${list_file}" in - *.gz) gunzip="${GUNZIP}";; - *) gunzip='cat';; - esac ${WGET} -q -O - "${url}" | ${gunzip} >"${list_file}" return 0 -- cgit v0.9.1