fix: auth-cli.ts 修复 HOME 路径解析 + shell wrapper 兼容
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ba6f4db716
commit
1db7786586
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue