From b29037526b09feba02043fcf933b78dd8d5ea51e Mon Sep 17 00:00:00 2001 From: ywkj Date: Fri, 20 Mar 2026 18:36:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20install.sh=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=AE=89=E8=A3=85=20auth-rt=EF=BC=88?= =?UTF-8?q?=E6=97=A0=E9=9C=80=E6=89=8B=E5=8A=A8=20clone=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- install.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 325a14e..975ba1f 100755 --- a/install.sh +++ b/install.sh @@ -2,11 +2,13 @@ set -euo pipefail cd "$(dirname "$0")" -# Prerequisite: auth-rt binary must be installed -if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.openclaw/bin/auth-rt" ]; then - echo "ERROR: auth-rt not found. Install it:" - echo " cd ~/clawd/skills/auth-runtime && ./install.sh" - exit 1 +# Auto-install auth-rt if not found +if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.local/bin/auth-rt" ]; then + echo "auth-rt not found, installing..." + _tmp="$(mktemp -d)" + git clone --depth 1 http://192.168.0.108:3030/agent-skills/auth-runtime.git "$_tmp/auth-runtime" + bash "$_tmp/auth-runtime/install.sh" + rm -rf "$_tmp" fi npm install