From: Michael Tremer Date: Wed, 10 Jul 2024 09:50:35 +0000 (+0000) Subject: make.sh: Fix checksum generation of the toolchain once again X-Git-Tag: v2.29-core188~10^2~264 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63faf359726bea54658122cc8b96d14503879bd6;p=ipfire-2.x.git make.sh: Fix checksum generation of the toolchain once again Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index 2d9b0a6742..1ebd89b1e8 100755 --- a/make.sh +++ b/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}" \