agent-infra / agent-infra/sandbox

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

Offen
#106 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
5.9k
Forks
529
Ø Merge
4 Std. 8 Min.
Gemergte PRs (30 T.)
4

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.