Skip to content

Commit

Permalink
Merge pull request #48 from mariux64/use-zstd-in-bee-download-for-git…
Browse files Browse the repository at this point in the history
…-archives

Let bee download use zstd for compressing git archives
  • Loading branch information
donald authored Nov 5, 2024
2 parents cabdf83 + 78a4f08 commit f9b1a92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bee-download.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,18 @@ function download_git() {

filename=${OPT_PKGNAME:-${PKGNAME}}-${OPT_VERSION:-${PKGFULLVERSION}}${pkgextraextraversion}

git archive --format=tar --prefix=${filename}/ ${commit} | bzip2 >${filename}.tar.bz2
git archive --format=tar --prefix=${filename}/ ${commit} | zstd >${filename}.tar.zstd

if [ ! -d "${BEE_DOWNLOADDIR}" ] ; then
mkdir -p ${BEE_DOWNLOADDIR}
fi
mv ${filename}.tar.bz2 ${BEE_DOWNLOADDIR}
mv ${filename}.tar.zstd ${BEE_DOWNLOADDIR}

trap - EXIT

rm -fr ${tmp_path}

echo ${BEE_DOWNLOADDIR}/${filename}.tar.bz2
echo ${BEE_DOWNLOADDIR}/${filename}.tar.zstd
}

options=$(${BEE_BINDIR}/beegetopt --name bee-download \
Expand Down

0 comments on commit f9b1a92

Please sign in to comment.