From 042deed5e5b77aa13271b2ccd78a331421377187 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 10 Oct 2022 22:23:04 +1100 Subject: [PATCH] Fix extract-only for old tar --- sysa/helpers.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysa/helpers.sh b/sysa/helpers.sh index 33f3069..c891a9f 100755 --- a/sysa/helpers.sh +++ b/sysa/helpers.sh @@ -241,16 +241,16 @@ extract_file() { if test -e "${PREFIX}/libexec/rmt"; then # Again, we want to split out into words. # shellcheck disable=SC2086 - tar --no-same-owner -xf "${DISTFILES}/${f}" -- ${extract} + tar --no-same-owner -xf "${DISTFILES}/${f}" ${extract} else # shellcheck disable=SC2086 case "${f}" in - *.tar.gz) tar -xzf "${DISTFILES}/${f}" -- ${extract} ;; + *.tar.gz) tar -xzf "${DISTFILES}/${f}" ${extract} ;; *.tar.bz2) # Initial bzip2 built against meslibc has broken pipes - bzip2 -dc "${DISTFILES}/${f}" | tar -xf - -- ${extract} ;; + bzip2 -dc "${DISTFILES}/${f}" | tar -xf - ${extract} ;; *.tar.xz) - tar -xf "${DISTFILES}/${f}" --use-compress-program=xz -- ${extract} ;; + tar -xf "${DISTFILES}/${f}" --use-compress-program=xz ${extract} ;; esac fi ;;