You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docker entrypoint has the following snippet to identify if a given command is an atlantis subcommand
if atlantis --help "$1" 2>&1 | grep -q "atlantis $1"; then
# We can't use the return code to check for the existence of a subcommand, so
# we have to use grep to look for a pattern in the help output.
set -- atlantis "$@"
fi
However, this doesn't work, as the atlantis --help output actually looks like this:
Terraform Pull Request Automation
Usage:
atlantis [command]
Available Commands:
help Help about any command
server Start the atlantis server
testdrive Start a guided tour of Atlantis
version Print the current Atlantis version
Flags:
-h, --help help for atlantis
Use "atlantis [command] --help" for more information about a command.
So this logic doesn't actually work for any subcommand other than "atlantis server," which itself only works because the description happens to contain the string "atlantis server."
The text was updated successfully, but these errors were encountered:
- if atlantis --help "$1" 2>&1 | grep -q "atlantis $1"; then+ if atlantis help "$1" 2>&1 | grep -q "atlantis $1"; then
# We can't use the return code to check for the existence of a subcommand, so
# we have to use grep to look for a pattern in the help output.
set -- atlantis "$@"
fi
It should be running atlantis help <subcommand> not atlantis --help <subcommand>.
Want to PR it?
The docker entrypoint has the following snippet to identify if a given command is an atlantis subcommand
https://github.com/runatlantis/atlantis/blob/master/docker-entrypoint.sh#L19-L23
However, this doesn't work, as the
atlantis --help
output actually looks like this:So this logic doesn't actually work for any subcommand other than "atlantis server," which itself only works because the description happens to contain the string "atlantis server."
The text was updated successfully, but these errors were encountered: