[IMPROVED] Simplificar aider_install.sh para usar el instalador oficial directamente

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mauro Rosero P. 2025-03-20 11:58:20 -05:00
parent 15fb4ed5fd
commit 8fce17c1ee
Signed by: mrosero
GPG key ID: 83BD2A5F674B7E26

View file

@ -55,37 +55,8 @@ load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "developers"
title="${head_000} ${aimsg_000}" title="${head_000} ${aimsg_000}"
AIDER_VENV="$HOME/.aider-venv" AIDER_VENV="$HOME/.aider-venv"
# Función para verificar python
check_python() {
if ! command -v python3 &> /dev/null; then
echo "${aimsg_001}"
echo "${aimsg_002}"
exit 1
fi
}
# Función para verificar pip
check_pip() {
if ! command -v pip3 &> /dev/null; then
echo "${aimsg_003}"
echo "${aimsg_004}"
exit 1
fi
}
# Función para verificar virtualenv
check_venv() {
if ! python3 -c "import venv" &> /dev/null; then
echo "${aimsg_005}"
if [ -f /etc/debian_version ]; then
sudo apt-get update && sudo apt-get install -y python3-venv
elif [ -f /etc/redhat-release ]; then
sudo dnf install -y python3-venv
else
pip3 install --user virtualenv
fi
fi
}
# Función para instalar aider # Función para instalar aider
install_aider() { install_aider() {
@ -131,8 +102,7 @@ main() {
uninstall_aider uninstall_aider
exit 0 exit 0
else else
# Verificar requisitos # Instalar aider directamente
check_python
install_aider install_aider
echo "" echo ""