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: efc71e6d86
This commit is contained in:
+2
-2
@@ -78,9 +78,9 @@ fi
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
if [ ! ${kiwi_isolated} ]; then
|
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
|
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
|
fi
|
||||||
kiwi_status=$?
|
kiwi_status=$?
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in New Issue
Block a user