agent-infra / agent-infra/sandbox

[bug] Syntax Error in wait-for-python-server.sh

Aberta
#106 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
5.9k
Forks
529
Merge médio
4h 8min
PRs com merge (30d)
4

Descrição

file : /opt/gem/wait-for-python-server.sh .
```bash

1 #!/usr/bin/env bash
2
3 set -euo pipefail
4
5 if [[ ${FASTAPI_WAIT_SKIP:-0} != 0 ]]; then
6 exec "$@"
7 fi
8
9 if [[ $# -lt 1 ]]; then
10 echo "wait-for-python-server: missing command to execute" >&2
11 exit 64
12 fi
13
14 host=${FASTAPI_WAIT_HOST:-127.0.0.1}
15 port=${SANDBOX_SRV_PORT:--8091}
16 path=${FASTAPI_WAIT_PATH:-/health}
17 timeout=${FASTAPI_WAIT_TIMEOUT:-10}
18 interval=${FASTAPI_WAIT_INTERVAL:-1}

```

line15.
```bash
port=${SANDBOX_SRV_PORT:--8091}
```

with one more “-” , shoud be

```bash
port=${SANDBOX_SRV_PORT:-8091}
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.