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:
Jan Kiszka 2019-01-31 10:08:41 +01:00 committed by Daniel Wagner
parent 7bd738a43c
commit dce5c0029a

View File

@ -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