From 1b1f3eb46cf2d37dbd1bb70c63830b6aee9c0671 Mon Sep 17 00:00:00 2001 From: ywkj Date: Fri, 20 Mar 2026 18:31:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20auth-cli.ts=20=E4=BF=AE=E5=A4=8D=20HOME?= =?UTF-8?q?=20=E8=B7=AF=E5=BE=84=E8=A7=A3=E6=9E=90=20+=20shell=20wrapper?= =?UTF-8?q?=20=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- src/auth-cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth-cli.ts b/src/auth-cli.ts index cb2cb9c..979e35d 100644 --- a/src/auth-cli.ts +++ b/src/auth-cli.ts @@ -18,8 +18,9 @@ import { spawnSync } from 'child_process'; import * as path from 'path'; import * as os from 'os'; +const home = process.env.HOME || os.homedir(); const AUTH_RT_BIN = process.env.AUTH_RT_BIN - || path.join(os.homedir(), '.openclaw', 'bin', 'auth-rt'); + || path.join(home, '.openclaw', 'bin', 'auth-rt'); export interface ApiResponse { status: number;