From 6c39b23364606d4d8d8561061b7e5f85831a01e4 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 20 Mar 2025 18:48:12 -0400 Subject: kiwi-build: Fix handling of kiwibuild_extra_args when undefined When the kiwibuild_extra_args variable is not defined, we do not want it to fail with "unbound variable" error. Fixes: efc71e6d8629f0e3b5bd2541650266d632a2fe68 --- kiwi-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwi-build b/kiwi-build index 509020a..0644c19 100755 --- a/kiwi-build +++ b/kiwi-build @@ -78,9 +78,9 @@ fi set +e if [ ! ${kiwi_isolated} ]; then -kiwi-ng ${debug} --type="${image_type}" --profile="${image_profile}" --kiwi-file="${kiwi_file}" --color-output system build --description "${kiwi_description_dir}" --target-dir "${output_dir}-build" ${kiwibuild_extra_args} +kiwi-ng ${debug} --type="${image_type}" --profile="${image_profile}" --kiwi-file="${kiwi_file}" --color-output system build --description "${kiwi_description_dir}" --target-dir "${output_dir}-build" ${kiwibuild_extra_args:+${kiwibuild_extra_args}} else -kiwi-ng ${debug} --type="${image_type}" --profile="${image_profile}" --kiwi-file="${kiwi_file}" --color-output system boxbuild --box universal --sshfs-sharing -- --description "${kiwi_description_dir}" --target-dir "${output_dir}-build" ${kiwibuild_extra_args} +kiwi-ng ${debug} --type="${image_type}" --profile="${image_profile}" --kiwi-file="${kiwi_file}" --color-output system boxbuild --box universal --sshfs-sharing -- --description "${kiwi_description_dir}" --target-dir "${output_dir}-build" ${kiwibuild_extra_args:+${kiwibuild_extra_args}} fi kiwi_status=$? set -e -- cgit v1.3.1+13