Skip to content

Commit e54a99f

Browse files
committed
fix tar command, order matters, use -tf instead of tf
1 parent 5e5518c commit e54a99f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot/check-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,11 @@ if [[ $USE_CHECK_BUILD_ARTEFACTS_SCRIPT -eq 0 ]]; then
479479
size_mib=$((${size} >> 20))
480480
tmpfile=$(mktemp --tmpdir=. tarfiles.XXXX)
481481
if [[ "${TARBALL}" == *.tar.zst ]]; then
482-
tar tf --use-compress-program=zstd ${TARBALL} > ${tmpfile}
482+
tar --use-compress-program=zstd -tf ${TARBALL} > ${tmpfile}
483483
elif [[ "${TARBALL}" == *.tar.gz ]]; then
484-
tar tf --use-compress-program=gzip ${TARBALL} > ${tmpfile}
484+
tar --use-compress-program=gzip -tf ${TARBALL} > ${tmpfile}
485485
elif [[ "${TARBALL}" == *.tar ]]; then
486-
tar tf ${TARBALL} > ${tmpfile}
486+
tar -tf ${TARBALL} > ${tmpfile}
487487
else
488488
echo "ERROR: Unsupported tarball extension!" >&2
489489
exit 1

0 commit comments

Comments
 (0)