summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-04-15 18:52:57 -0700
committerMichael Forney <mforney@mforney.org>2020-04-15 19:09:56 -0700
commitea72d6bab9e53b63d0ad391fbb6019adf6c8a9e2 (patch)
tree0eae1e954a5bd849d183341208012d7910a5777e /scripts
parentb275ed3c0711327bff6c1e67dbeaac8c5452a0e4 (diff)
Use main compression tool instead of *cat variants
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fetch-curl.sh8
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