]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
make.sh: Fix checksum generation of the toolchain once again
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2024 09:50:35 +0000 (09:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jul 2024 15:21:20 +0000 (15:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 2d9b0a67422288f7524afc49e59087dd046ca522..1ebd89b1e81937a9fa1f294caa569d40e60fdde6 100755 (executable)
--- 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}" \