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:
parent
3cdfd4ae78
commit
035cdc2059
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user