File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 115115topdir=${cvmfs_repo} /versions/
116116
117117echo " >> Creating tarball ${target_tarball} from ${topdir} ..."
118- target_tarball_ext=" ${target_tarball##* .} "
119- if [ " ${target_tarball_ext} " = " zst" ]; then
120- if [ -x " $( command -v zstd) " ]; then
121- tar -cvf - -C ${topdir} --files-from=${files_list} | zstd -T0 > ${target_tarball}
122- else
123- echo " Zstd compression requested, but zstd command is not available." >&2
124- exit 4
125- fi
126- elif [ " ${target_tarball_ext} " = " gz" ]; then
127- if [[ -x " $( command -v gzip) " ]]; then
128- tar -czvf ${target_tarball} -C ${topdir} --files-from=${files_list}
129- else
130- echo " Gzip compression requested, but gzip command is not available." >&2
131- exit 4
132- fi
133- elif [ " ${target_tarball_ext} " = " tar" ]; then
134- tar -cfv ${target_tarball} -C ${topdir} --files-from=${files_list}
135- else
136- echo " Unknown tarball type (${target_tarball_ext} ) requested."
137- exit 4
138- fi
118+ tar cavf ${target_tgz} -C ${topdir} --files-from=${files_list}
139119echo ${target_tarball} created!
140120
141121echo " >> Cleaning up tmpdir ${tmpdir} ..."
You can’t perform that action at this time.
0 commit comments