kas-docker: Simplify SHELL variable passing

The SHELL variable we pass can neither contain spaces nor newlines - we
check for supported values. Simplify the related assignment.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2020-03-17 15:03:38 +01:00
parent 1ba260deeb
commit d96a26f1c8

View File

@ -234,7 +234,7 @@ done
# propagate only supported SHELL settings
case "$SHELL" in
/bin/sh|/bin/bash|/bin/dash)
set -- "$@" -e "SHELL='$(eval echo \"\$SHELL\")'"
set -- "$@" -e "SHELL=$SHELL"
;;
esac