kas-docker: Fix bad substitution error

kas-docker uses sh shell, which doesnot support pattern substitution
like bash. Replace Bash like pattern substitution with sed.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Vijai Kumar K 2020-06-19 09:36:20 +02:00 committed by Jan Kiszka
parent 839c936abb
commit a48ae6a7fa

View File

@ -104,7 +104,7 @@ esac
while [ $# -gt 0 ]; do
case "$1" in
--isar)
DOCKER_IMAGE="${DOCKER_IMAGE/kasproject\/kas/kasproject\/kas-isar}"
DOCKER_IMAGE="$(echo "${DOCKER_IMAGE}" | sed 's|kasproject/kas|kasproject/kas-isar|g')"
ISAR_ARGS="--cap-add=SYS_ADMIN --cap-add=MKNOD --privileged"
# sudo is needed for a privileged podman container