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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73d01ffba9d2f655c7a2f1d0d50f7edf10ac2e27;p=people%2Fms%2Fipfire-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 2d9b0a674..1ebd89b1e 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}" \