Fix(ADN): Referencias reparadas en git hooks hacia la CLI optimizada
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user