diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-16 20:55:08 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-16 20:55:08 (EDT) |
commit | 2db34bc5f78c74d8b371e836ed8dc32217eaee3a (patch) | |
tree | 0a0b2075521410d41061bc868f75f94fd3b0c0b3 | |
parent | 044985f6987c03811b9782d38caed62dc0c5cb48 (diff) |
feed_download(): Fix gunzip logic
-rw-r--r-- | src/feed.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |