]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Fix toolchain checksum validation
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 19:56:52 +0000 (19:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 19:56:52 +0000 (19:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index dc568b99b0cf5d9e13dd65002b809999498ec7a8..7dfdfc57bf09769320a67d432a0fa38fd9088c57 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1135,7 +1135,7 @@ download_toolchain() {
        fi
 
        # Check integrity
-       if ! b2sum --quiet --check "${tmp}/${checksums}"; then
+       if ! cd "${tmp}" && b2sum --quiet --check "${checksums}"; then
                # Cleanup
                rm -rf "${tmp}"
 
@@ -1234,7 +1234,7 @@ compress_toolchain() {
        fi
 
        # Create the checksums
-       if ! b2sum "${tmp}/${toolchain}" > "${tmp}/${checksums}"; then
+       if ! cd "${tmp}" && b2sum "${toolchain}" > "${tmp}/${checksums}"; then
                # Cleanup
                rm -rf "${tmp}"