aboutsummaryrefslogtreecommitdiff
path: root/kiwi-build
diff options
from:
to:
context:
space:
mode:
authorGravatar Neal Gompa <ngompa@fedoraproject.org> 2025-03-20 18:48:12 -0400
committerGravatar Neal Gompa <ngompa@fedoraproject.org> 2025-03-20 18:48:12 -0400
commit6c39b23364606d4d8d8561061b7e5f85831a01e4 (patch)
tree5245644a04d22804965bfe66fa1c6c2c044b51fb /kiwi-build
parentd7316ab54385a248ed453ab2b6067d81becc7ce4 (diff)
downloadkiwi-descriptions-6c39b23364606d4d8d8561061b7e5f85831a01e4.tar.gz
kiwi-descriptions-6c39b23364606d4d8d8561061b7e5f85831a01e4.zip
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
Diffstat (limited to 'kiwi-build')
-rwxr-xr-xkiwi-build4
1 files 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