make.sh: Fix checksum generation of the toolchain once again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-10 09:50:35 +00:00
parent b1cf1d9cfb
commit 63faf35972

View File

@@ -1240,14 +1240,21 @@ compress_toolchain() {
return 1
fi
# Change to the temporary directory
pushd "${tmp}" &>/dev/null
# Create the checksums
if ! cd "${tmp}" && b2sum "${toolchain}" > "${tmp}/${checksums}"; then
if ! b2sum "${toolchain}" > "${tmp}/${checksums}"; then
popd &>/dev/null
# Cleanup
rm -rf "${tmp}"
return 1
fi
popd &>/dev/null
# Everything is good, move the files to their destination
if ! mv \
"${tmp}/${toolchain}" \