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:
parent
1ba260deeb
commit
d96a26f1c8
@ -234,7 +234,7 @@ done
|
|||||||
# propagate only supported SHELL settings
|
# propagate only supported SHELL settings
|
||||||
case "$SHELL" in
|
case "$SHELL" in
|
||||||
/bin/sh|/bin/bash|/bin/dash)
|
/bin/sh|/bin/bash|/bin/dash)
|
||||||
set -- "$@" -e "SHELL='$(eval echo \"\$SHELL\")'"
|
set -- "$@" -e "SHELL=$SHELL"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user