diff options
Diffstat (limited to 'src')
-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 |