0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/tools/docker/bin/renovate-entrypoint.sh

24 lines
464 B
Bash
Executable File

#!/bin/bash
if [[ -f "/usr/local/etc/env" && -z "${CONTAINERBASE_ENV+x}" ]]; then
# shellcheck source=/dev/null
. /usr/local/etc/env
fi
if [[ ! -d "/tmp/containerbase" ]]; then
# initialize all prepared tools
containerbase-cli init tool all
fi
if [[ "${1:0:1}" = '-' ]]; then
# assume $1 is renovate flag
set -- renovate "$@"
fi
if [[ ! -x "$(command -v "${1}")" ]]; then
# assume $1 is a repo
set -- renovate "$@"
fi
exec dumb-init -- "$@"