File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,16 @@ if [[ $USE_CHECK_BUILD_ARTEFACTS_SCRIPT -eq 0 ]]; then
478478 size=" $( stat --dereference --printf=%s ${TARBALL} ) "
479479 size_mib=$(( ${size} >> 20 ))
480480 tmpfile=$( mktemp --tmpdir=. tarfiles.XXXX)
481- tar tf ${TARBALL} > ${tmpfile}
481+ if [[ " ${TARBALL} " == * .tar.zst ]]; then
482+ tar tf --use-compress-program=zstd ${TARBALL} > ${tmpfile}
483+ elif [[ " ${TARBALL} " == * .tar.gz ]]; then
484+ tar tf --use-compress-program=gzip ${TARBALL} > ${tmpfile}
485+ elif [[ " ${TARBALL} " == * .tar ]]; then
486+ tar tf ${TARBALL} > ${tmpfile}
487+ else
488+ echo " ERROR: Unsupported tarball extension!" >&2
489+ exit 1
490+ fi
482491 entries=$( cat ${tmpfile} | wc -l)
483492 # determine prefix from job config: VERSION/software/OS_TYPE/CPU_FAMILY/ARCHITECTURE
484493 # e.g., 2023.06/software/linux/x86_64/intel/skylake_avx512
You can’t perform that action at this time.
0 commit comments