Quote the environment variable argument passed to umoci to allow it to
correctly handle spaces. Note that this requires that OCI_IMAGE_ENV_VARS
have the argument quoted with single quotes, as in:

    OCI_IMAGE_ENV_VARS = "FOO='bar bat'"

Signed-off-by: Joshua Watt <jpewhac...@gmail.com>
---
 classes/image-oci-umoci.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/image-oci-umoci.inc b/classes/image-oci-umoci.inc
index d96b438..e8facfe 100644
--- a/classes/image-oci-umoci.inc
+++ b/classes/image-oci-umoci.inc
@@ -64,8 +64,8 @@ IMAGE_CMD:oci() {
     fi
     if [ -n "${OCI_IMAGE_ENV_VARS}" ]; then
        for l in ${OCI_IMAGE_ENV_VARS}; do
-           bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} 
--config.env $l"
-           umoci config --image $image_name:${OCI_IMAGE_TAG} --config.env $l
+           bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} 
--config.env \"$l\""
+           umoci config --image $image_name:${OCI_IMAGE_TAG} --config.env "$l"
        done
     fi
     if [ -n "${OCI_IMAGE_PORTS}" ]; then
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8377): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8377
Mute This Topic: https://lists.yoctoproject.org/mt/102006235/21656
Group Owner: meta-virtualization+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to