agent-infra / agent-infra/sandbox

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

Abierto
#106 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
5.9k
Forks
529
Merge medio
4 h 8 min
PR fusionados (30 d)
4

Descripción

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}
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.