Update diagnose-and-fix script to set installation directory dynamically

- Modified `diagnose-and-fix.sh` to determine the installation directory based on the script's location.
- Added output to display the working directory for improved user feedback during diagnostics.
This commit is contained in:
Primakov Alexandr Alexandrovich 2025-10-13 00:37:46 +03:00
parent 607b1e95db
commit bbfa7c0967

View File

@ -5,7 +5,12 @@ echo "AI Review - Диагностика и исправление"
echo "=========================================="
echo ""
INSTALL_DIR="$HOME/code-review-agent"
# Определить директорию установки (где находится скрипт)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
INSTALL_DIR="$SCRIPT_DIR"
echo "Working directory: $INSTALL_DIR"
echo ""
echo "1. Проверка файлов:"
echo " - Backend: $([ -d $INSTALL_DIR/backend ] && echo '✓' || echo '✗')"