Merge pull request #174 from dpieski/main

fix: WSL script crash when wslvar command unavailable
This commit is contained in:
Beehive Innovations
2025-08-07 22:32:39 -07:00
committed by GitHub

View File

@@ -125,7 +125,7 @@ get_claude_config_path() {
win_appdata=$(wslvar APPDATA 2>/dev/null) win_appdata=$(wslvar APPDATA 2>/dev/null)
fi fi
if [[ -n "$win_appdata" ]]; then if [[ -n "${win_appdata:-}" ]]; then
echo "$(wslpath "$win_appdata")/Claude/claude_desktop_config.json" echo "$(wslpath "$win_appdata")/Claude/claude_desktop_config.json"
else else
print_warning "Could not determine Windows user path automatically. Please ensure APPDATA is set correctly or provide the full path manually." print_warning "Could not determine Windows user path automatically. Please ensure APPDATA is set correctly or provide the full path manually."