1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

F OpenNebula/one#6175: fiv env parsing for docker images (#2625)

(cherry picked from commit 4c1e83719db20834dc33c93f98666a9adf3b1bc1)
This commit is contained in:
Neal 2023-05-29 04:26:16 -06:00 committed by Tino Vázquez
parent 3cdfd4ae78
commit 035cdc2059
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -290,7 +290,7 @@ if [ -n "$one_entrypoint" ]; then
one_env="RUN echo '#!/bin/sh\n"
if [ -n "$env" ] && ! [ "$env" == "null" ]; then
env=$(echo "$env" | jq -jr '.[] | "export " + . + "\\n"')
env=$(echo "$env" | jq -jr '.[] | "export \"" + . + "\"\\n"')
one_env="${one_env}$env"
fi