diff options
| author | Michael Forney <mforney@mforney.org> | 2020-04-15 18:52:57 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-04-15 19:09:56 -0700 |
| commit | ea72d6bab9e53b63d0ad391fbb6019adf6c8a9e2 (patch) | |
| tree | 0eae1e954a5bd849d183341208012d7910a5777e /scripts/fetch-curl.sh | |
| parent | b275ed3c0711327bff6c1e67dbeaac8c5452a0e4 (diff) | |
Use main compression tool instead of *cat variants
Diffstat (limited to 'scripts/fetch-curl.sh')
| -rw-r--r-- | scripts/fetch-curl.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/fetch-curl.sh b/scripts/fetch-curl.sh index a25c0582..e026faef 100644 --- a/scripts/fetch-curl.sh +++ b/scripts/fetch-curl.sh @@ -25,16 +25,16 @@ fi while read -r checksum archive ; do case $archive in *.tar.gz|*.tgz) - tool=zcat ;; + tool=gzip ;; *.tar.bz2) - tool=bzcat ;; + tool=bzip2 ;; *.tar.xz) - tool=xzcat ;; + tool=xz ;; *) tool= esac if [ -n "$tool" ] ; then - "$tool" "$archive" | $PAXREAD -s ',^[^/]*,src,' '*/*' + "$tool" -d -c "$archive" | $PAXREAD -s ',^[^/]*,src,' '*/*' fi done <sha256 |
