kas-docker: Enable multi-line variables
We need to double-quote the content of the variables in order to preserve newlines. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
This commit is contained in:
parent
7bd738a43c
commit
dce5c0029a
@ -215,7 +215,7 @@ set -- ${DOCKER_ARGS}
|
||||
for var in SHELL TERM KAS_DISTRO KAS_MACHINE KAS_TARGET KAS_TASK \
|
||||
http_proxy https_proxy ftp_proxy no_proxy NO_PROXY; do
|
||||
if [ -n "$(eval echo \$${var})" ]; then
|
||||
set -- "$@" -e "${var}='$(eval echo \$${var})'"
|
||||
set -- "$@" -e "${var}='$(eval echo \"\$${var}\")'"
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user