From e5b51d37e144bac99b135ef9bf1d494a73cd3216 Mon Sep 17 00:00:00 2001 From: "Mauro Rosero P." Date: Wed, 12 Mar 2025 09:20:45 -0500 Subject: [PATCH] [IMPROVED] Mejorar mensajes de error en update.sh para Python y pip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Agregar mensajes de error claros cuando Python o pip no están instalados - Eliminar dependencia de dialog en update.sh - Mantener mensajes informativos simples usando variables del sistema - Sugerir ejecutar bootstrap.sh para instalar dependencias faltantes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- bin/update.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/update.sh b/bin/update.sh index ecb006e..86d2907 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -66,17 +66,20 @@ echo -e "\n${head_info}: Verificando actualizaciones de Python y pip..." # Update Python command_installed python3 -if [ $? -eq 0 ] -then +if [ $? -eq 0 ]; then python3_update +else + echo -e "\n${head_error}: Python3 no está instalado. Ejecute bin/bootstrap.sh primero." fi # Update pip separately command_installed pip3 -if [ $? -eq 0 ] -then +if [ $? -eq 0 ]; then pip_update +else + echo -e "\n${head_error}: pip3 no está instalado. Ejecute bin/bootstrap.sh primero." + echo -e "Esta dependencia es necesaria para varias herramientas del sistema." fi -echo -e "\n${head_info}: Actualizaciones completadas." +echo -e "\n${head_info}: Proceso de actualización completado."