From cba3bcb0d07e6135165a192906713810ab8a03c6 Mon Sep 17 00:00:00 2001 From: iusmac Date: Fri, 1 Mar 2019 20:50:12 +0100 Subject: [PATCH] Fix issue "ambiguous redirect" Full error message: "/docker-entrypoint.sh: line 58: ${HOME_DIR}/projects/${SCRIPT_NAME}.sh: ambiguous redirect" The error appears when in Config.json is present `name` and `container`. --- docker-entrypoint | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-entrypoint b/docker-entrypoint index 0f40c90..a504be0 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -49,6 +49,7 @@ make_container_cmd() { DOCKERARGS=$(echo ${1} | jq -r .dockerargs) if [ "${DOCKERARGS}" == "null" ]; then DOCKERARGS=; fi SCRIPT_NAME=$(echo ${1} | jq -r .name) + SCRIPT_NAME=$(slugify $SCRIPT_NAME) PROJECT=$(echo ${1} | jq -r .project) CONTAINER=$(echo ${1} | jq -r .container) TMP_COMMAND=$(echo ${1} | jq -r .command)