Skip to content

Commit 0ba48f7

Browse files
authored
use correct options for tar command
1 parent 460cd1d commit 0ba48f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_tarball.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ echo ">> Creating tarball ${target_tarball} from ${topdir}..."
118118
target_tarball_ext="${target_tarball##*.}"
119119
if [ "${target_tarball_ext}" = "zst" ]; then
120120
if [ -x "$(command -v zstd)" ]; then
121-
tar -cf - -C ${topdir} --files-from=${files_list} | zstd -T0 > ${target_tarball}
121+
tar -cvf - -C ${topdir} --files-from=${files_list} | zstd -T0 > ${target_tarball}
122122
else
123123
echo "Zstd compression requested, but zstd command is not available." >&2
124124
exit 4
125125
fi
126126
elif [ "${target_tarball_ext}" = "gz" ]; then
127127
if [[ -x "$(command -v gzip)" ]]; then
128-
tar -cfvz ${target_tarball} -C ${topdir} --files-from=${files_list}
128+
tar -czvf ${target_tarball} -C ${topdir} --files-from=${files_list}
129129
else
130130
echo "Gzip compression requested, but gzip command is not available." >&2
131131
exit 4

0 commit comments

Comments
 (0)