From ea3cbbd89c92c107b719e121e2675d22a75585f7 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 28 Apr 2025 14:27:49 -0700 Subject: Use our own pax for extracting archives This reduces dependencies and variability in pax implementations. --- scripts/extract.sh | 9 +-------- scripts/fetch-curl.sh | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/extract.sh b/scripts/extract.sh index 4a1ad044..5205bee0 100644 --- a/scripts/extract.sh +++ b/scripts/extract.sh @@ -8,11 +8,4 @@ case $file in *) exit 0 esac -if command -v bsdtar >/dev/null; then - exec bsdtar -xf "$file" "$@" -elif command -v pax >/dev/null; then - "$tool" -d -c "$file" | pax -r "$@" -else - printf '%s: bsdtar or pax is required' "$0" >&2 - exit 1 -fi +"$tool" -d -c "$file" | "$PAX" -r "$@" diff --git a/scripts/fetch-curl.sh b/scripts/fetch-curl.sh index 16cb88d7..0ff3d9a1 100644 --- a/scripts/fetch-curl.sh +++ b/scripts/fetch-curl.sh @@ -20,7 +20,7 @@ if ! sh "$OLDPWD/scripts/checksum.sh" -c sha256 2>/dev/null ; then fi while read -r _ archive ; do - sh "$OLDPWD/scripts/extract.sh" "$archive" -s ',^[^/]*,src,' '*/*' + sh "$OLDPWD/scripts/extract.sh" "$archive" -s ',^[^/]*,src,' done