Skip to content

Commit bbb0ed2

Browse files
authored
Fix docker-entrypoint when called with atlantis (runatlantis#3060)
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 ```
1 parent 9add331 commit bbb0ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

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

0 commit comments

Comments
 (0)