0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/tools/docker/bin/renovate-entrypoint.sh
2025-01-24 10:47:53 +00:00

14 lines
259 B
Bash
Executable file

#!/bin/bash
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
# call the original entrypoint
exec docker-entrypoint.sh "$@"