From bb8ef93eef00c27fb4850ebdb4b01a103e097ade Mon Sep 17 00:00:00 2001 From: lebartal Date: Sat, 24 Jan 2026 20:58:25 +0100 Subject: [PATCH] elaboration menu AutoInstall --- modules/AutoInstall/autoinstall.ksh | 9 ++++++++ modules/AutoInstall/sources/fonctions.ksh | 27 ++++++++--------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/modules/AutoInstall/autoinstall.ksh b/modules/AutoInstall/autoinstall.ksh index 9bb4854..d1e3e93 100755 --- a/modules/AutoInstall/autoinstall.ksh +++ b/modules/AutoInstall/autoinstall.ksh @@ -50,6 +50,15 @@ case ${reponse} in 1) maj_depot + maj_systeme + install_nala + install_packages + install_flatpaks + install_atuin + install_mainline + install_zsh + config_zsh + config_alias ;; 2) diff --git a/modules/AutoInstall/sources/fonctions.ksh b/modules/AutoInstall/sources/fonctions.ksh index 5f5d06e..240a41d 100755 --- a/modules/AutoInstall/sources/fonctions.ksh +++ b/modules/AutoInstall/sources/fonctions.ksh @@ -1,25 +1,16 @@ #! /bin/bash -# Couleurs de texte (Foreground) -NOIR='\e[30m' -ROUGE='\e[31m' -VERT='\e[32m' -JAUNE='\e[33m' -BLEU='\e[34m' -VIOLET='\e[35m' -CYAN='\e[36m' -BLANC='\e[37m' +if [[ -z "${ROOT_DIR}" ]]; then + echo "Erreur : Veuillez lancer ce script via le menu.ksh principal." + exit 1 +fi -# Couleurs de fond (Background) -BG_NOIR='\e[40m' -BG_ROUGE='\e[41m' -BG_VERT='\e[42m' -BG_JAUNE='\e[43m' +dir_script=$(cd "$(dirname "$0")" && pwd) -# Styles -GRAS='\e[1m' -SOULIGNE='\e[4m' -RESET="\e[0m" +#Chargement des couleurs (via la racine globale) +if [[ -f "${ROOT_DIR}/sources/couleurs.ksh" ]]; then + . "${ROOT_DIR}/sources/couleurs.ksh" +fi #Verif gestionnaire packages if command -v nala >/dev/null 2>&1; then