From bbfa7c09672c6619b1bc4d20ea56c5ad5bfeea52 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Mon, 13 Oct 2025 00:37:46 +0300 Subject: [PATCH] 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. --- diagnose-and-fix.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/diagnose-and-fix.sh b/diagnose-and-fix.sh index c42055c..f6680aa 100644 --- a/diagnose-and-fix.sh +++ b/diagnose-and-fix.sh @@ -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 '✗')"