From ea72d6bab9e53b63d0ad391fbb6019adf6c8a9e2 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 15 Apr 2020 18:52:57 -0700 Subject: Use main compression tool instead of *cat variants --- scripts/fetch-curl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/fetch-curl.sh') 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