[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
|
||||
#
|
||||
# Script: $SCRIPT_NAME
|
||||
# Description: $DESCRIPTION
|
||||
# Created: $CREATED_DATE
|
||||
# Modified: $MODIFIED_DATE
|
||||
# [Author] $AUTHOR
|
||||
# [Generated] $GENERATED_BY
|
||||
#
|
||||
# Derechos de Autor (C) [2025] [Mauro Rosero P. <mauro@rosero.one>]
|
||||
#
|
||||
#Script : [Bash Script Name]
|
||||
#Apps : MRDEVS TOOLS
|
||||
#Description : [Bash Script Description]
|
||||
#Author : [Bash Script Author]
|
||||
#Company Email : [Company Email Author's]
|
||||
#Personal Email : [Personal Email Author's]
|
||||
#Created : [Created Date/Time]
|
||||
#Modified : [Modified Date/Time]
|
||||
#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
|
||||
# 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,
|
||||
|
|
|
@ -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