mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
make.sh: Fix checksum generation of the toolchain once again
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
9
make.sh
9
make.sh
@@ -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}" \
|
||||
|
||||
Reference in New Issue
Block a user