agent-infra / agent-infra/sandbox

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

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.9k
Forks
529
Avg merge
4h 8m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.