From 55e9f58fa7c551aebfd6084b778cd942fa8b20ce Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 28 May 2026 18:46:27 +0200 Subject: Update (fixes support for a few edge cases, and leaves nothing laying around) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- util/get-and-check | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 util/get-and-check (limited to 'util/get-and-check') diff --git a/util/get-and-check b/util/get-and-check new file mode 100755 index 0000000..da9f1aa --- /dev/null +++ b/util/get-and-check @@ -0,0 +1,17 @@ +#!/bin/sh +# See LICENSE file for copyright and license details. + +set -e + +if ! test $# = 3; then + printf 'usage: %s tarball-url reference-dir work-dir\n' "$0" >&2 + exit 1 +fi + +utildir="$(dirname -- "$0")" +tarball="$3/download-$$.tar.gz" + +curl -sL -- "$1" > "${tarball}" +"${utildir}"/validate-tarball "${tarball}" "$2" "$3" +"${utildir}"/get-checksums "${tarball}" +rm -f -- "${tarball}" -- cgit v1.3.1