Skip to content

Commit

Permalink
Fix docker-entrypoint when called with atlantis (runatlantis#3060)
Browse files Browse the repository at this point in the history
Prior to v0.22.0 the container could be run with the command `atlantis
server`. However this was broken by runatlantis#2770:
```
Error: unknown command "atlantis" for "atlantis"
```

This PR reverts to previous functionality and matches the comment.
Following calls all work again:
```sh
docker run atlantis server
docker run atlantis --help
docker run atlantis atlantis server
docker run atlantis atlantis --help
```
  • Loading branch information
dpiddock authored Jan 27, 2023
1 parent 9add331 commit bbb0ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e

# If the user is trying to run atlantis directly with some arguments, then
# pass them to atlantis.
if [ "$(echo "${1}" | cut -c1)" ]; then
if [ "$(echo "${1}" | cut -c1)" = "-" ]; then
set -- atlantis "$@"
fi

Expand Down

0 comments on commit bbb0ed2

Please sign in to comment.