[IMPROVED] Actualizar plantilla bash.head y eliminar bash.variables redundante
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
d22c3590df
commit
1a4c7e609a
2 changed files with 14 additions and 40 deletions
|
@ -1,14 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#Script : [Bash Script Name]
|
||||||
# Script: $SCRIPT_NAME
|
#Apps : MRDEVS TOOLS
|
||||||
# Description: $DESCRIPTION
|
#Description : [Bash Script Description]
|
||||||
# Created: $CREATED_DATE
|
#Author : [Bash Script Author]
|
||||||
# Modified: $MODIFIED_DATE
|
#Company Email : [Company Email Author's]
|
||||||
# [Author] $AUTHOR
|
#Personal Email : [Personal Email Author's]
|
||||||
# [Generated] $GENERATED_BY
|
#Created : [Created Date/Time]
|
||||||
#
|
#Modified : [Modified Date/Time]
|
||||||
# Derechos de Autor (C) [2025] [Mauro Rosero P. <mauro@rosero.one>]
|
#Version : [Apps Version]
|
||||||
#
|
#Use Notes :
|
||||||
|
#==============================================================================
|
||||||
|
# Derechos de Autor [YYYY] [Mauro Rosero P. <mauro@rosero.one>]
|
||||||
|
#==============================================================================
|
||||||
# Este programa es software libre: usted puede redistribuirlo y/o modificarlo
|
# Este programa es software libre: usted puede redistribuirlo y/o modificarlo
|
||||||
# bajo los términos de la Licencia Pública Affero General de GNU tal como
|
# bajo los términos de la Licencia Pública Affero General de GNU tal como
|
||||||
# lo publica la Free Software Foundation, ya sea la versión 3 de la licencia,
|
# lo publica la Free Software Foundation, ya sea la versión 3 de la licencia,
|
||||||
|
@ -20,4 +23,4 @@
|
||||||
# Licencia Pública Affero General de GNU para obtener más detalles.
|
# Licencia Pública Affero General de GNU para obtener más detalles.
|
||||||
#
|
#
|
||||||
# Debería haber recibido una copia de la Licencia Pública Affero General
|
# Debería haber recibido una copia de la Licencia Pública Affero General
|
||||||
# junto con este programa. Si no la recibió, consulte <https://www.gnu.org/licenses/>.
|
# junto con este programa. Si no la recibió, consulte <https://www.gnu.org/licenses/>.
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
# Configuración inicial
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
|
|
||||||
# Leer DEVSPATH desde el archivo de configuración o usar "devs" por defecto
|
|
||||||
if [ -f "$SCRIPT_DIR/config/devspath.dat" ]; then
|
|
||||||
DEVSPATH=$(cat "$SCRIPT_DIR/config/devspath.dat")
|
|
||||||
else
|
|
||||||
DEVSPATH="devs"
|
|
||||||
fi
|
|
||||||
|
|
||||||
BIN_HOME="$HOME/$DEVSPATH"
|
|
||||||
BIN_BASE="bin"
|
|
||||||
BIN_LIBS="lib"
|
|
||||||
BIN_MESG="msg"
|
|
||||||
BIN_CFGS="config"
|
|
||||||
VERSION=$(cat "$BIN_HOME/$BIN_BASE/$BIN_CFGS/version")
|
|
||||||
|
|
||||||
# CHECK SHELL LANGUAGE
|
|
||||||
BIN_LANG=${LANG:0:2}
|
|
||||||
|
|
||||||
# Importar bibliotecas necesarias
|
|
||||||
source "${BIN_HOME}/${BIN_BASE}/${BIN_LIBS}/base.lib"
|
|
||||||
source "${BIN_HOME}/${BIN_BASE}/${BIN_LIBS}/console.lib"
|
|
||||||
|
|
||||||
# Cargar mensajes en el idioma del sistema o español por defecto
|
|
||||||
load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "head"
|
|
||||||
|
|
||||||
# Variables globales
|
|
||||||
title="${head_000} ${head_002}"
|
|
Loading…
Reference in a new issue