From 63faf359726bea54658122cc8b96d14503879bd6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 10 Jul 2024 09:50:35 +0000 Subject: [PATCH] make.sh: Fix checksum generation of the toolchain once again Signed-off-by: Michael Tremer --- make.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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}" \ -- 2.47.3