agent-infra / agent-infra/sandbox
[bug] Syntax Error in wait-for-python-server.sh
- Ngôn ngữ chính
- Python
- Star
- 5.9k
- Fork
- 529
- Merge trung bình
- 4 giờ 8 phút
- Pull request đã merge (30 ngày)
- 4
Mô tả
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}
```
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.