fix claude path
This commit is contained in:
@@ -108,7 +108,7 @@ restart_claude() {
|
||||
powershell.exe -NoProfile -Command '
|
||||
Get-Process -Name "Claude*" -ErrorAction SilentlyContinue | Stop-Process -Force
|
||||
Start-Sleep 3
|
||||
$exe=Get-ChildItem "$env:LOCALAPPDATA\Programs" -Recurse -Filter "Claude.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
|
||||
$exe=@("$env:LOCALAPPDATA\AnthropicClaude","$env:LOCALAPPDATA\Programs") | ForEach-Object { Get-ChildItem $_ -Recurse -Filter "claude.exe" -ErrorAction SilentlyContinue } | Select-Object -First 1
|
||||
if($exe){ Start-Process $exe.FullName }
|
||||
' || warn "Открой Claude вручную."
|
||||
fi
|
||||
@@ -162,7 +162,7 @@ fi
|
||||
say "[1/5] Проверяю приложение Claude..."
|
||||
CLAUDE_OK=false
|
||||
if [ "$OS" = "mac" ] && [ -d "/Applications/Claude.app" ]; then CLAUDE_OK=true; fi
|
||||
if [ "$OS" = "win" ] && find "$LOCALAPPDATA/Programs" -maxdepth 3 -name "Claude.exe" 2>/dev/null | grep -q .; then CLAUDE_OK=true; fi
|
||||
if [ "$OS" = "win" ] && find "$LOCALAPPDATA/AnthropicClaude" "$LOCALAPPDATA/Programs" -maxdepth 3 -iname "claude.exe" 2>/dev/null | grep -q .; then CLAUDE_OK=true; fi
|
||||
if [ "$CLAUDE_OK" = "true" ]; then ok "Claude установлен."
|
||||
else
|
||||
warn "Claude не найден. Открываю страницу загрузки..."
|
||||
|
||||
Reference in New Issue
Block a user