Skip to content

Commit

Permalink
fixup! build: Split zip only if it's bigger than 2GB
Browse files Browse the repository at this point in the history
Signed-off-by: Jarl-Penguin <[email protected]>
  • Loading branch information
JarlPenguin committed Dec 10, 2024
1 parent 7282c6a commit 71314e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ export zip_name=$(echo "${finalzip_path}" | sed "s|${outdir}/||")
export tag=$( echo "$(env TZ="${timezone}" date +%Y%m%d%H%M)-${zip_name}" | sed 's|.zip||')
if [ "${buildsuccessful}" == "0" ] && [ ! -z "${finalzip_path}" ]; then
size=$(du -BG ${finalzip_path} | cut -dG -f1)
[ "${size}" -ge 2 ] && split ${finalzip_path} ${finalzip_path} -C 2GB
rm ${finalzip_path}
[ "${size}" -ge 2 ] && split ${finalzip_path} ${finalzip_path} -C 2GB && rm ${finalzip_path}

echo "Build completed successfully in $((BUILD_DIFF / 60)) minute(s) and $((BUILD_DIFF % 60)) seconds"

Expand Down

0 comments on commit 71314e6

Please sign in to comment.