Fix(ADN): Referencias reparadas en git hooks hacia la CLI optimizada

This commit is contained in:
Ricardo Monla
2026-03-07 15:40:28 -03:00
parent c4c761e408
commit 3e5bc1e663
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
# ─── Configuración ───────────────────────────────────────────────────────
PROYECTO_ROOT="$(git rev-parse --show-toplevel)"
ADN_TOOLS_DIR="${PROYECTO_ROOT}/tools/adn"
ADN_CLI="${PROYECTO_ROOT}/tools/adn.rb"
ADN_CLI="${PROYECTO_ROOT}/tools/adn/run"
CONFIG_FILE="${ADN_TOOLS_DIR}/config.yml"
HOOK_NAME="pre-commit ADN"
@@ -114,7 +114,7 @@ ejecutar_validacion() {
# Ejecutar validador con opción --fix automática para correcciones menores
local output
if output=$(ruby "${ADN_CLI}" validador --fix 2>&1); then
if output=$("${ADN_CLI}" validador --fix 2>&1); then
# El validador exitó con éxito
if echo "$output" | grep -q "Con errores: 0"; then
if echo "$output" | grep -q "Con advertencias: 0"; then