mirror of https://github.com/renovatebot/renovate
19 lines
351 B
Bash
Executable File
19 lines
351 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 [[ "${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 -- "$@"
|