argo-cd/test/container/entrypoint.sh
Oliver Gondža 5ee35ad707
fix: Address shellcheck detected shell warnings (#22686)
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
2025-07-18 07:38:27 -04:00

16 lines
353 B
Bash
Executable file

#!/bin/bash
set -e
if test "$(id -u)" == "0" -a "${USER_ID}" != ""; then
useradd -u "${USER_ID}" -d /home/user -s /bin/bash "${USER_NAME:-default}"
chown -R "${USER_NAME:-default}" "${GOCACHE}"
fi
export PATH=$PATH:/usr/local/go/bin:/go/bin
export GOROOT=/usr/local/go
if test "$$" = "1"; then
exec tini -- "$@"
else
exec "$@"
fi