Browse Source

fix: [compose-core] ``dc`` usage was broken

This could cause charm using it to not launch.

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cache-relation 1.5.5
Valentin Lab 4 years ago
parent
commit
eb159adf10
  1. 11
      bin/compose-core

11
bin/compose-core

@ -3169,7 +3169,14 @@ $(declare -f read-0)
docker_run_opts=() docker_run_opts=()
while read-0 opt; do while read-0 opt; do
docker_run_opts+=("\$opt")
if [[ "\$opt" == "!env:"* ]]; then
opt="\${opt##!env:}"
var="\${opt%%=*}"
value="\${opt#*=}"
export "\$var"="\$value"
else
docker_run_opts+=("\$opt")
fi
done < <(cat "$COMPOSE_LAUNCHER_OPTS") done < <(cat "$COMPOSE_LAUNCHER_OPTS")
docker_run_opts+=( docker_run_opts+=(
@ -3180,7 +3187,7 @@ docker_run_opts+=(
docker_run_opts+=("-ti") docker_run_opts+=("-ti")
} }
exec docker run --rm "\${docker_run_opts[@]}" "${COMPOSE_DOCKER_IMAGE:-docker.0k.io/compose}" "\$@"
exec docker run --rm "\${docker_run_opts[@]}" "\${COMPOSE_DOCKER_IMAGE:-docker.0k.io/compose}" "\$@"
EOF EOF

Loading…
Cancel
Save