]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Join compression arguments as a string
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2024 08:49:57 +0000 (08:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2024 09:51:25 +0000 (09:51 +0000)
Otherwise, the array gets split and tar cannot identify which option
belongs to where.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 541fadfe94b08e830d6959fdd4aacbb0c819ba2b..2d9b0a67422288f7524afc49e59087dd046ca522 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -586,8 +586,8 @@ execute() {
                [DEFAULT_PARALLELISM]="${DEFAULT_PARALLELISM}"
 
                # Compression Options
-               [XZ_OPT]="${XZ_OPT[@]}"
-               [ZSTD_OPT]="${ZSTD_OPT[@]}"
+               [XZ_OPT]="${XZ_OPT[*]}"
+               [ZSTD_OPT]="${ZSTD_OPT[*]}"
 
                # Build Architecture
                [BUILD_ARCH]="${BUILD_ARCH}"
@@ -1211,7 +1211,7 @@ compress_toolchain() {
                "--create"
 
                # Filter through zstd with custom options
-               "-I" "zstd ${ZSTD_OPT[@]}"
+               "-I" "zstd ${ZSTD_OPT[*]}"
 
                # Write to the temporary directory
                "-f" "${tmp}/${toolchain}"