From d32832b091a2844f2b49e8cd277bc091aad86472 Mon Sep 17 00:00:00 2001 From: "Mauro Rosero P." Date: Wed, 19 Mar 2025 07:09:30 -0500 Subject: [PATCH] =?UTF-8?q?[IMPROVED]=20Centralizar=20versi=C3=B3n=20en=20?= =?UTF-8?q?bin/config/version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modificar todos los scripts para leer la versión desde bin/config/version - Añadir variable BIN_CFGS donde faltaba - Eliminar definiciones locales de VERSION en los scripts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- bin/cortana_disable.sh | 2 +- bin/cortana_enable.sh | 2 +- bin/cortana_install.sh | 2 +- bin/cortana_token.sh | 2 +- bin/helix_install.sh | 2 +- bin/npm_install.sh | 5 +++-- bin/profile_restore.sh | 3 ++- bin/vpn_install.sh | 3 ++- bin/vpn_users.sh | 2 +- 9 files changed, 13 insertions(+), 10 deletions(-) diff --git a/bin/cortana_disable.sh b/bin/cortana_disable.sh index 5ea1ae5..d82a4e4 100755 --- a/bin/cortana_disable.sh +++ b/bin/cortana_disable.sh @@ -26,7 +26,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.0 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/cortana_enable.sh b/bin/cortana_enable.sh index dbd26e4..b267045 100755 --- a/bin/cortana_enable.sh +++ b/bin/cortana_enable.sh @@ -26,7 +26,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.0 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/cortana_install.sh b/bin/cortana_install.sh index 56b6003..4f718a0 100755 --- a/bin/cortana_install.sh +++ b/bin/cortana_install.sh @@ -27,7 +27,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.1 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/cortana_token.sh b/bin/cortana_token.sh index 1780784..7c3f7ce 100755 --- a/bin/cortana_token.sh +++ b/bin/cortana_token.sh @@ -24,7 +24,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.0 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/helix_install.sh b/bin/helix_install.sh index 1e52285..7f11c5b 100755 --- a/bin/helix_install.sh +++ b/bin/helix_install.sh @@ -26,7 +26,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.0 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/npm_install.sh b/bin/npm_install.sh index e50c9be..5222827 100755 --- a/bin/npm_install.sh +++ b/bin/npm_install.sh @@ -4,7 +4,8 @@ # Soporta: Arch Linux, Debian/Ubuntu, Fedora, FreeBSD y macOS (Homebrew) # Requiere: dialog # Modified: 2025/03/09 10:27:00 -# Generado con inteligencia artificial +# Creado por [Cortana Rosero One ] +# Generado con inteligencia artificial Claude Source # Derechos de Autor (C) [2024] [Mauro Rosero P. ] # # Este programa es software libre: usted puede redistribuirlo y/o modificarlo @@ -25,7 +26,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.1 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/profile_restore.sh b/bin/profile_restore.sh index 3551d72..43c6b09 100755 --- a/bin/profile_restore.sh +++ b/bin/profile_restore.sh @@ -21,7 +21,8 @@ DEVSPATH=devs BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib -VERSION=0.98.0 +BIN_CFGS=bin/config +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/vpn_install.sh b/bin/vpn_install.sh index 5265243..b5899e5 100755 --- a/bin/vpn_install.sh +++ b/bin/vpn_install.sh @@ -21,7 +21,8 @@ DEVSPATH=devs BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib -VERSION=1.0.1 +BIN_CFGS=bin/config +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2} diff --git a/bin/vpn_users.sh b/bin/vpn_users.sh index b8ed998..8d73f72 100755 --- a/bin/vpn_users.sh +++ b/bin/vpn_users.sh @@ -22,7 +22,7 @@ BIN_HOME=$HOME/$DEVSPATH BIN_MESG=bin/msg BIN_LIBS=bin/lib BIN_CFGS=bin/config -VERSION=1.0.1 +VERSION=$(cat "$BIN_HOME/$BIN_CFGS/version") # CHECK SHELL LANGUAGE BIN_LANG=${LANG:0:2}