mirror of
https://github.com/dockersrc/ubuntu
synced 2026-06-30 17:45:53 -04:00
affa6b11bb
Build and Push 18.04 / build (push) Has been cancelled
Build and Push 20.04 / build (push) Has been cancelled
Build and Push 22.04 / build (push) Has been cancelled
Build and Push 24.04 / build (push) Has been cancelled
Build and Push 24.10 / build (push) Has been cancelled
Build and Push 26.04 / build (push) Has been cancelled
Build and Push / build (push) Has been cancelled
__exec_command was using ${arg:-} which only captured the first element
of the args array, then ran it through "$shell" $pre_exec "$cmdExec"
which effectively discarded everything after $1.
Running `docker run image sh -c 'go build ...'` would:
1. Set arg=("sh" "-c" "go build ...")
2. Set cmdExec="sh" (only first element)
3. Run bash --login -c "sh" (dropping -c and the actual command)
This broke any Makefile GO_DOCKER pattern that relied on passing multi-arg
commands. Simplified to just `exec "$@"` which passes all args through.
- rootfs/usr/local/etc/docker/functions/entrypoint.sh: rewrite __exec_command
rootfs/usr/local/etc/docker/functions/entrypoint.sh