From 0643e9ceaeee2c8df64207dad50887c11d558081 Mon Sep 17 00:00:00 2001 From: Robert Wlodarczyk Date: Sat, 16 Jul 2022 10:40:02 -0700 Subject: [PATCH] chore: moving line to be consistent. --- docker-entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint b/docker-entrypoint index 1d51a53..09ef079 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -67,13 +67,13 @@ slugify() { make_image_cmd() { DOCKERARGS=$(echo "${1}" | jq -r .dockerargs) + if [ "${DOCKERARGS}" == "null" ]; then DOCKERARGS=; fi VOLUMES=$(echo "${1}" | jq -r 'select(.volumes != null) | .volumes | map(" -v " + .) | join("")') PORTS=$(echo "${1}" | jq -r 'select(.ports != null) | .ports | map(" -p " + .) | join("")') EXPOSE=$(echo "${1}" | jq -r 'select(.expose != null) | .expose | map(" --expose " + .) | join("")') NAME=$(echo "${1}" | jq -r 'select(.name != null) | .name') NETWORK=$(echo "${1}" | jq -r 'select(.network != null) | .network') ENVIRONMENT=$(echo "${1}" | jq -r 'select(.environment != null) | .environment | map(" -e " + .) | join("")') - if [ "${DOCKERARGS}" == "null" ]; then DOCKERARGS=; fi if [ -n "${NAME}" ]; then DOCKERARGS+=" --rm --name ${NAME} "; fi if [ -n "${NETWORK}" ]; then DOCKERARGS+=" --network ${NETWORK} "; fi if [ -n "${VOLUMES}" ]; then DOCKERARGS+="${VOLUMES}"; fi