agent-infra / agent-infra/sandbox

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

未關閉
#106 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
5.9k
分支
529
平均合併
4 小時 8 分鐘
30 天內合併 PR
4

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。