fix claude path

This commit is contained in:
2026-09-01 10:56:44 +00:00
parent 606a95686e
commit ad1b44d644
+2 -2
View File
@@ -108,7 +108,7 @@ restart_claude() {
powershell.exe -NoProfile -Command ' powershell.exe -NoProfile -Command '
Get-Process -Name "Claude*" -ErrorAction SilentlyContinue | Stop-Process -Force Get-Process -Name "Claude*" -ErrorAction SilentlyContinue | Stop-Process -Force
Start-Sleep 3 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 } if($exe){ Start-Process $exe.FullName }
' || warn "Открой Claude вручную." ' || warn "Открой Claude вручную."
fi fi
@@ -162,7 +162,7 @@ fi
say "[1/5] Проверяю приложение Claude..." say "[1/5] Проверяю приложение Claude..."
CLAUDE_OK=false CLAUDE_OK=false
if [ "$OS" = "mac" ] && [ -d "/Applications/Claude.app" ]; then CLAUDE_OK=true; fi 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 установлен." if [ "$CLAUDE_OK" = "true" ]; then ok "Claude установлен."
else else
warn "Claude не найден. Открываю страницу загрузки..." warn "Claude не найден. Открываю страницу загрузки..."