Skip to content

Commit 812352a

Browse files
Fix entrypoint.sh arg handling - stdio mode unreachable (#11)
* Initial plan * Fix entrypoint.sh logic to properly handle stdio command argument Co-authored-by: elasticdotventures <35611074+elasticdotventures@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: elasticdotventures <35611074+elasticdotventures@users.noreply.github.com>
1 parent f791ce1 commit 812352a

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

docker/entrypoint.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ MODE="${CRATEDOCS_MODE:-http}"
55
ADDRESS="${CRATEDOCS_ADDRESS:-0.0.0.0:8080}"
66
DEBUG="${CRATEDOCS_DEBUG:-false}"
77

8-
if [ "$MODE" = "http" ]; then
9-
if [ "$DEBUG" = "true" ]; then
10-
exec /usr/local/bin/cratedocs http --address "$ADDRESS" --debug "$@"
11-
else
12-
exec /usr/local/bin/cratedocs http --address "$ADDRESS" "$@"
13-
fi
14-
else
15-
exec /usr/local/bin/cratedocs "$MODE" "$@"
16-
fi
178
# If explicit args provided, run with those
189
if [ "$#" -gt 0 ]; then
1910
exec /usr/local/bin/cratedocs "$@"

0 commit comments

Comments
 (0)