From 232a950732e4f9272ac09f3959994c08ecc9f5ca Mon Sep 17 00:00:00 2001 From: root Date: Fri, 9 Oct 2026 14:15:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20tea=20=E6=88=90=E5=8A=9F=E6=99=82?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=9B=A0=E8=BC=B8=E5=87=BA=E5=90=AB=20TLS=20?= =?UTF-8?q?=E5=AD=97=E6=A8=A3=E8=80=8C=E8=AA=A4=E5=88=A4=E9=87=8D=E8=A9=A6?= =?UTF-8?q?=EF=BC=880.0.10=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- plugin.json | 2 +- skills/herdr-issue/scripts/lib.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 0a6a712..e52b88f 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "herdr-issue", - "version": "0.0.9", + "version": "0.0.10", "description": "透過 Herdr 讓 Claude agent 逐一實作 Gitea 議題(每個議題一個 worktree 與 tab)。", "skills": "./skills", "author": { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 095c9b8..9d41da8 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "herdr-issue", - "version": "0.0.9", + "version": "0.0.10", "description": "透過 Herdr 讓 Claude agent 逐一實作 Gitea 議題(每個議題一個 worktree 與 tab)。", "skills": "./skills" } diff --git a/plugin.json b/plugin.json index 08ca6b8..3c1675b 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "herdr-issue", - "version": "0.0.9", + "version": "0.0.10", "description": "透過 Herdr 讓 Claude agent 逐一實作 Gitea 議題(每個議題一個 worktree 與 tab)。", "skills": "./skills/" } \ No newline at end of file diff --git a/skills/herdr-issue/scripts/lib.sh b/skills/herdr-issue/scripts/lib.sh index 3b8b4a9..06e103d 100755 --- a/skills/herdr-issue/scripts/lib.sh +++ b/skills/herdr-issue/scripts/lib.sh @@ -38,7 +38,7 @@ tea() { for ((try = 1; try <= max; try++)); do out="$(command tea "$1" --login "$HERDR_ISSUE_LOGIN" "${@:2}" 2>"$ef")" && rc=0 || rc=$? err="$(cat "$ef")" - if ! grep -qiE 'tls|x509|certificate|handshake' <<<"$out$err"; then break; fi + if [ "$rc" -eq 0 ] || ! grep -qiE 'tls|x509|certificate|handshake' <<<"$out$err"; then break; fi echo "herdr-issue: tea 遇到 TLS/憑證錯誤(第 $try/$max 次),3 秒後重試" >&2 rc=${rc/#0/1}; sleep 3 done